Samples must be greater than 0 and color formats must match.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91670
---
 tests/spec/gl-3.2/layered-rendering/framebuffertexture.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/spec/gl-3.2/layered-rendering/framebuffertexture.c 
b/tests/spec/gl-3.2/layered-rendering/framebuffertexture.c
index d6eef1e..88599de 100644
--- a/tests/spec/gl-3.2/layered-rendering/framebuffertexture.c
+++ b/tests/spec/gl-3.2/layered-rendering/framebuffertexture.c
@@ -137,10 +137,10 @@ create_bind_texture(GLenum textureType) {
                }
                break;
        case GL_TEXTURE_2D_MULTISAMPLE:
-               glTexImage2DMultisample(textureType, 0, GL_RGB, 6, 6, GL_FALSE);
+               glTexImage2DMultisample(textureType, 1, GL_RGBA, 6, 6, 
GL_FALSE);
                break;
        case GL_TEXTURE_2D_MULTISAMPLE_ARRAY:
-               glTexImage3DMultisample(textureType, 0, GL_RGB,
+               glTexImage3DMultisample(textureType, 1, GL_RGBA,
                                        6, 6, 6, GL_FALSE);
                break;
        }
-- 
2.4.3

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to