expectError (GL_INVALID_ENUM);
}
- glRenderbufferStorage (GL_RENDERBUFFER, GL_RGBA8_SNORM, 1, 1);
- expectError (GL_INVALID_ENUM);
+ if (!m_context.getContextInfo().isExtensionSupported("GL_EXT_render_snorm")) // GL_EXT_render_snorm disables error
+ {
+ glRenderbufferStorage (GL_RENDERBUFFER, GL_RGBA8_SNORM, 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.");
expectError (GL_INVALID_ENUM);
}
- glRenderbufferStorageMultisample (GL_RENDERBUFFER, 2, GL_RGBA8_SNORM, 1, 1);
- expectError (GL_INVALID_ENUM);
+ if (!m_context.getContextInfo().isExtensionSupported("GL_EXT_render_snorm")) // GL_EXT_render_snorm disables error
+ {
+ glRenderbufferStorageMultisample (GL_RENDERBUFFER, 2, GL_RGBA8_SNORM, 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.");
ctx.expectError (GL_INVALID_ENUM);
}
- ctx.glRenderbufferStorage (GL_RENDERBUFFER, GL_RGBA8_SNORM, 1, 1);
- ctx.expectError (GL_INVALID_ENUM);
+ if (!ctx.getContextInfo().isExtensionSupported("GL_EXT_render_snorm")) // GL_EXT_render_snorm disables error
+ {
+ ctx.glRenderbufferStorage (GL_RENDERBUFFER, GL_RGBA8_SNORM, 1, 1);
+ ctx.expectError (GL_INVALID_ENUM);
+ }
+
ctx.endSection();
ctx.beginSection("GL_INVALID_VALUE is generated if width or height is less than zero.");
ctx.expectError (GL_INVALID_ENUM);
}
- ctx.glRenderbufferStorageMultisample (GL_RENDERBUFFER, 2, GL_RGBA8_SNORM, 1, 1);
- ctx.expectError (GL_INVALID_ENUM);
+ if (!ctx.getContextInfo().isExtensionSupported("GL_EXT_render_snorm")) // GL_EXT_render_snorm disables error
+ {
+ ctx.glRenderbufferStorageMultisample (GL_RENDERBUFFER, 2, GL_RGBA8_SNORM, 1, 1);
+ ctx.expectError (GL_INVALID_ENUM);
+ }
+
ctx.endSection();
ctx.beginSection("GL_INVALID_OPERATION is generated if samples is greater than the maximum number of samples supported for internalformat. (Unsigned integer format)");