fbo-mrt-alphatest: Actually require MRTs to be available.
[piglit.git] / tests / general / push-pop-texture-state.c
blob6ff089374d33aba12b08f90bc3418b20f071c02d
1 /**
2 * Test pushing/popping of GL_TEXTURE_BIT state.
4 * Test case from fd.o bug #9833.
5 * https://bugs.freedesktop.org/show_bug.cgi?id=9833
6 */
8 #include "piglit-util-gl.h"
10 PIGLIT_GL_TEST_CONFIG_BEGIN
12 config.supports_gl_compat_version = 10;
14 config.window_visual = PIGLIT_GL_VISUAL_DOUBLE | PIGLIT_GL_VISUAL_RGB;
16 PIGLIT_GL_TEST_CONFIG_END
18 enum piglit_result
19 piglit_display(void)
21 bool pass = true;
23 glClear(GL_COLOR_BUFFER_BIT);
25 glPushAttrib(GL_TEXTURE_BIT);
26 pass = piglit_check_gl_error(GL_NO_ERROR) && pass;
28 glPopAttrib();
29 pass = piglit_check_gl_error(GL_NO_ERROR) && pass;
31 piglit_present_results();
33 return pass ? PIGLIT_PASS : PIGLIT_FAIL;
36 void
37 piglit_init(int argc, char **argv)