Commit d384a94c by Geoff Lang Committed by Shannon Woods

Fixed a bug that allowed reading to an integer format from a non-integer frame buffer.

TRAC #23276 Signed-off-by: Nicolas Capens Signed-off-by: Shannon Woods Author: Geoff Lang
parent a4d13323
......@@ -1587,7 +1587,16 @@ bool validES3ReadFormatType(GLenum internalFormat, GLenum format, GLenum type)
switch (type)
{
case GL_INT:
if (!gl::IsSignedIntegerFormat(internalFormat, 3))
{
return false;
}
break;
case GL_UNSIGNED_INT:
if (!gl::IsUnsignedIntegerFormat(internalFormat, 3))
{
return false;
}
break;
default:
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment