[Piglit] [PATCH 3/6] MSAA tests: don't use glClearBuffer

Marek Olšák maraeo at gmail.com
Sun Jan 6 06:12:16 PST 2013


---
 tests/spec/ext_framebuffer_multisample/common.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/spec/ext_framebuffer_multisample/common.cpp b/tests/spec/ext_framebuffer_multisample/common.cpp
index 9109b86..b467c27 100644
--- a/tests/spec/ext_framebuffer_multisample/common.cpp
+++ b/tests/spec/ext_framebuffer_multisample/common.cpp
@@ -1219,8 +1219,8 @@ ColorGradientSunburst::draw_with_scale_and_offset(const float (*proj)[4],
 	}
 	case GL_UNSIGNED_NORMALIZED:
 	case GL_FLOAT: {
-		float clear_color[4] = { offset, offset, offset, offset };
-		glClearBufferfv(GL_COLOR, 0, clear_color);
+		glClearColor(offset, offset, offset, offset);
+		glClear(GL_COLOR_BUFFER_BIT);
 		break;
 	}
 	default:
-- 
1.7.10.4



More information about the Piglit mailing list