Fixed issue #963.

This commit is contained in:
Branimir Karadžić
2016-11-04 19:54:03 -07:00
parent e795d8227a
commit 89515a3617

View File

@@ -1148,7 +1148,17 @@ namespace bgfx { namespace gl
;
GLsizei size = (16*16*getBitsPerPixel(_format) )/8;
void* data = bx::alignPtr(alloca(size+16), 0, 16);
void* data = NULL;
if (isDepth(_format) )
{
_srgb = false;
_mipmaps = false;
}
else
{
data = bx::alignPtr(alloca(size+16), 0, 16);
}
flushGlError();
GLenum err = 0;