[Piglit] NOTICE: piglit_{width, height, window_mode} are no longer used

Chad Versace chad.versace at linux.intel.com
Wed Jun 20 16:58:42 PDT 2012


I just committed a series that changes the way test executables should be written. This only affects tests written in C.
The variables piglit_width, piglit_height, and piglit_window_mode are no longer used.

If you want to write this:

    int piglit_width = 256;
    int piglit_height = 256;
    int piglit_window_mode = GLUT_RGBA;

Instead, you should now write this:

    PIGLIT_GL_TEST_MAIN(256, 256, GLUT_RGBA)

I prefer to place this macro near the top of the source file, immediately below the includes. But it really doesn't
matter where it goes.

----
Chad Versace
chad.versace at linux.intel.com



More information about the Piglit mailing list