Index: gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc |
=================================================================== |
--- gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc (revision 112643) |
+++ gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc (working copy) |
@@ -5599,6 +5599,17 @@ |
EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
} |
+TEST_F(GLES2DecoderTest, TextureUsageAngleExtNotEnabledByDefault) { |
+ DoBindTexture(GL_TEXTURE_2D, client_texture_id_, kServiceTextureId); |
+ |
+ TexParameteri cmd; |
+ cmd.Init(GL_TEXTURE_2D, |
+ GL_TEXTURE_USAGE_ANGLE, |
+ GL_FRAMEBUFFER_ATTACHMENT_ANGLE); |
+ EXPECT_EQ(error::kNoError, ExecuteCmd(cmd)); |
+ EXPECT_EQ(GL_INVALID_ENUM, GetGLError()); |
+} |
+ |
TEST_F(GLES2DecoderWithShaderTest, |
DrawClearsAfterRenderbuffersWithMultipleAttachments) { |
const GLuint kFBOClientTextureId = 4100; |