]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Avoid passing NULLs to glBufferSubData.
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Feb 2019 02:53:32 +0000 (02:53 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 3 Feb 2019 02:53:32 +0000 (02:53 +0000)
commit364bfae7928352be358f01785420fabf1b6eac03
tree6ef25d1e3eac6723cb680e2a9cede305ded891a3
parent2075ae43356d724bae305ce8fd36ea570718b14a
Avoid passing NULLs to glBufferSubData.

Fixes crash at startup with Linux intel drivers. Can't tell why it doesn't crash
llvmpipe too.

Sorry, I'm not sure if skipping the entire logic of R_BufferData_Store in this
case is right. It does seem to be though.

If this change is a bad idea, please revert.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12472 d7cf8633-e32d-0410-b094-e92efae38249
gl_backend.c