From 16fc7b99edc0efc192f2e2f9b8750a922eb287ee Mon Sep 17 00:00:00 2001 From: Nicolas Capens Date: Tue, 23 Jan 2018 23:16:39 +0000 Subject: [PATCH] Test glRenderbufferStorage with unsized depth format The OpenGL ES 2.0 specification only supports formats from Table 4.5, which are all sized internal formats, while ES 3.0 explicitly states that " must be a sized internal format". A color format (GL_RGBA) was already being negatively tested for, but not a depth format. --- modules/gles2/functional/es2fNegativeBufferApiTests.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gles2/functional/es2fNegativeBufferApiTests.cpp b/modules/gles2/functional/es2fNegativeBufferApiTests.cpp index 84894f9..4dfcb70 100644 --- a/modules/gles2/functional/es2fNegativeBufferApiTests.cpp +++ b/modules/gles2/functional/es2fNegativeBufferApiTests.cpp @@ -393,6 +393,8 @@ void NegativeBufferApiTests::init (void) expectError(GL_INVALID_ENUM); glRenderbufferStorage(GL_RENDERBUFFER, GL_RGBA, 1, 1); expectError(GL_INVALID_ENUM); + glRenderbufferStorage(GL_RENDERBUFFER, GL_DEPTH_COMPONENT, 1, 1); + expectError(GL_INVALID_ENUM); m_log << TestLog::EndSection; m_log << TestLog::Section("", "GL_INVALID_VALUE is generated if width or height is less than zero."); -- 2.7.4