blob: 360b71c56e133270eb2c549f1daab5a3347a2c5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/**
* Test pushing/popping of GL_TEXTURE_BIT state.
*
* Test case from fd.o bug #9833.
* https://bugs.freedesktop.org/show_bug.cgi?id=9833
*/
#include "piglit-util-gl-common.h"
PIGLIT_GL_TEST_CONFIG_BEGIN
config.supports_gl_compat_version = 10;
config.window_visual = PIGLIT_GL_VISUAL_DOUBLE | PIGLIT_GL_VISUAL_RGB;
PIGLIT_GL_TEST_CONFIG_END
enum piglit_result
piglit_display(void)
{
bool pass = true;
glClear(GL_COLOR_BUFFER_BIT);
glPushAttrib(GL_TEXTURE_BIT);
pass = piglit_check_gl_error(GL_NO_ERROR) && pass;
glPopAttrib();
pass = piglit_check_gl_error(GL_NO_ERROR) && pass;
piglit_present_results();
return pass ? PIGLIT_PASS : PIGLIT_FAIL;
}
void
piglit_init(int argc, char **argv)
{
}
|