Don't try and read values from NULL, use implicit 0s. Refs #347

This commit is contained in:
baldurk
2016-09-05 13:08:20 +02:00
parent 1a2b2cca85
commit e39209c194
@@ -3302,7 +3302,7 @@ bool WrappedOpenGL::Serialise_glClearNamedBufferDataEXT(GLuint buffer, GLenum in
uint64_t val[4] = {0};
if(m_State >= WRITING)
if(m_State >= WRITING && data != NULL)
{
size_t s = 1;
switch(Format)