[Piglit] [PATCH 2/4] primitive-restart: Remove compile-time tests for GL 3.1

Ian Romanick idr at freedesktop.org
Wed Dec 2 08:49:17 PST 2015


From: Ian Romanick <ian.d.romanick at intel.com>

These were added in 28ca3c1, and they were a good idea in 2010.  I think
it's safe to count on glext.h with the proper functions today.

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Cc: Brian Paul <brianp at vmware.com>
---
 tests/general/primitive-restart.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/tests/general/primitive-restart.c b/tests/general/primitive-restart.c
index f6d705e..1bd8d27 100644
--- a/tests/general/primitive-restart.c
+++ b/tests/general/primitive-restart.c
@@ -190,10 +190,8 @@ static void
 enable_restart(GLuint restart_index)
 {
    if (TestGL31) {
-#ifdef GL_VERSION_3_1
       glEnable(GL_PRIMITIVE_RESTART);
       glPrimitiveRestartIndex(restart_index);
-#endif
    }
    else {
       glEnableClientState(GL_PRIMITIVE_RESTART_NV);
@@ -206,9 +204,7 @@ static void
 disable_restart(void)
 {
    if (TestGL31) {
-#ifdef GL_VERSION_3_1
       glDisable(GL_PRIMITIVE_RESTART);
-#endif
    }
    else {
       glDisableClientState(GL_PRIMITIVE_RESTART_NV);
-- 
2.5.0



More information about the Piglit mailing list