Commit d7d79de3 by Jamie Madill Committed by Commit Bot

Update inaccurate error string.

Noticed when working on the traces. Bug: angleproject:4845 Change-Id: I954851bc739e41ce84047eaf5e0dc4c8bcf57199 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2329832Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent aed3d65b
...@@ -76,6 +76,7 @@ MSG kCubemapIncomplete = "Texture is not cubemap complete. All cubemaps faces mu ...@@ -76,6 +76,7 @@ MSG kCubemapIncomplete = "Texture is not cubemap complete. All cubemaps faces mu
MSG kCubemapInvalidDepth = "The cubemap depth must be a multiple of 6."; MSG kCubemapInvalidDepth = "The cubemap depth must be a multiple of 6.";
MSG kDataTypeNotAligned = "Data is not evenly divisible into the number of bytes needed to store in memory a datum indicated by type."; MSG kDataTypeNotAligned = "Data is not evenly divisible into the number of bytes needed to store in memory a datum indicated by type.";
MSG kDefaultFramebuffer = "Default framebuffer is bound."; MSG kDefaultFramebuffer = "Default framebuffer is bound.";
MSG kDefaultFramebufferAttachmentOnUserFBO = "Invalid attachment when a user framebuffer is bound.";
MSG kDefaultFramebufferInvalidAttachment = "Invalid attachment when the default framebuffer is bound."; MSG kDefaultFramebufferInvalidAttachment = "Invalid attachment when the default framebuffer is bound.";
MSG kDefaultFramebufferInvalidDrawBuffer = "Only NONE or BACK are valid draw buffers for the default framebuffer"; MSG kDefaultFramebufferInvalidDrawBuffer = "Only NONE or BACK are valid draw buffers for the default framebuffer";
MSG kDefaultFramebufferTarget = "It is invalid to change default FBO's attachments"; MSG kDefaultFramebufferTarget = "It is invalid to change default FBO's attachments";
......
...@@ -3541,7 +3541,7 @@ bool ValidateDiscardFramebufferBase(const Context *context, ...@@ -3541,7 +3541,7 @@ bool ValidateDiscardFramebufferBase(const Context *context,
if (!defaultFramebuffer) if (!defaultFramebuffer)
{ {
context->validationError(GL_INVALID_ENUM, context->validationError(GL_INVALID_ENUM,
kDefaultFramebufferInvalidAttachment); kDefaultFramebufferAttachmentOnUserFBO);
return false; return false;
} }
break; break;
......
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