mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-26 11:50:59 +00:00
Calculate the right size (including padding) for D32S8
This commit is contained in:
@@ -94,7 +94,7 @@ size_t GetByteSize(GLsizei w, GLsizei h, GLsizei d, GLenum format, GLenum type,
|
||||
return ((w*4 + alignAdd) & alignMask)*h*d;
|
||||
case eGL_DEPTH32F_STENCIL8:
|
||||
case eGL_FLOAT_32_UNSIGNED_INT_24_8_REV:
|
||||
return ((w*5 + alignAdd) & alignMask)*h*d;
|
||||
return ((w*8 + alignAdd) & alignMask)*h*d;
|
||||
default:
|
||||
RDCERR("Unhandled Byte Size type %d!", type);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user