Commit 6fc8c9b9 by Geoff Lang Committed by Gerrit Code Review

Merge "Validate that the mip level is not too large for CopyTextureCHROMIUM."

parents 9dd5dbd8 3847f94d
......@@ -342,7 +342,7 @@ bool IsValidCopyTextureSourceTarget(Context *context, GLenum target)
bool IsValidCopyTextureSourceLevel(Context *context, GLenum target, GLint level)
{
if (level < 0)
if (!ValidMipLevel(context, target, level))
{
return false;
}
......@@ -361,7 +361,7 @@ bool IsValidCopyTextureDestinationLevel(Context *context,
GLsizei width,
GLsizei height)
{
if (level < 0)
if (!ValidMipLevel(context, target, level))
{
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