diff libinterp/dldfcn/__osmesa_print__.cc @ 19916:f48e650a68b5

Use GLint instead of just int in calls to glGetIntegerv to match prototype. * __osmesa_print__.cc: Declare variables used in glGetIntegerv to be of type GLint.
author Rik <rik@octave.org>
date Sun, 08 Mar 2015 05:53:11 -0700
parents d9f6260cf20a
children a0ec61ec0f73
line wrap: on
line diff
--- a/libinterp/dldfcn/__osmesa_print__.cc
+++ b/libinterp/dldfcn/__osmesa_print__.cc
@@ -152,11 +152,10 @@
 
   // Test for a bug in OSMesa with version < 9.0
   //
-  // Unfortunately the macros OSMESA_MAJOR_VERSION and
-  // OSMESA_MINOR_VERSION weren't updated between many releases and
-  // can't be used for detection.  (Version 8.0 until 9.1.4 all return
-  // MAJOR 6, MINOR 5)
-  int z, s;
+  // Unfortunately the macros OSMESA_MAJOR_VERSION and OSMESA_MINOR_VERSION
+  // weren't updated between many releases and can't be used for detection.
+  // (Version 8.0 until 9.1.4 all return MAJOR 6, MINOR 5)
+  GLint z, s;
   glGetIntegerv (GL_DEPTH_BITS, &z);
   glGetIntegerv (GL_STENCIL_BITS, &s);
   if (z != 16 || s != 0)