aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2013-01-06 05:31:59 +0100
committerMarek Olšák <maraeo@gmail.com>2013-01-15 17:22:50 +0100
commit5b751a43c8892e51d956da0eeefb434589c2dec4 (patch)
treee0a34e692c5038a8eeb0f7fa68e712488d8f4a8c
parent5a2bd765802ddbc05880cde8c3f158701c89569e (diff)
downloadpiglit-5b751a43c8892e51d956da0eeefb434589c2dec4.tar.gz
MSAA tests: don't use glClearBuffer
Reviewed-by: Paul Berry <stereotype441@gmail.com>
-rw-r--r--tests/spec/ext_framebuffer_multisample/common.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/spec/ext_framebuffer_multisample/common.cpp b/tests/spec/ext_framebuffer_multisample/common.cpp
index 5c03d88a..c58ba3bc 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: