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
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
23 glClear(GL_COLOR_BUFFER_BIT
);
25 glPushAttrib(GL_TEXTURE_BIT
);
26 pass
= piglit_check_gl_error(GL_NO_ERROR
) && pass
;
29 pass
= piglit_check_gl_error(GL_NO_ERROR
) && pass
;
31 piglit_present_results();
33 return pass
? PIGLIT_PASS
: PIGLIT_FAIL
;
37 piglit_init(int argc
, char **argv
)