diff mbox

gl-3.2: fix layered-rendering test

Message ID 1439872941-3980-1-git-send-email-t_arceri@yahoo.com.au
State New
Headers show

Commit Message

'Timothy Arceri' via Patchwork Forward Aug. 18, 2015, 4:42 a.m. UTC
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 mbox

Patch

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;
 	}