mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 05:43:12 +01:00
Fixed issue #963.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user