0023022: This is desirable to access OpenGl extensions and core API (1.2+) in one...
[occt.git] / src / OpenGl / OpenGl_togl_inquireplane.cxx
diff --git a/src/OpenGl/OpenGl_togl_inquireplane.cxx b/src/OpenGl/OpenGl_togl_inquireplane.cxx
deleted file mode 100755 (executable)
index 25327ca..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#define GER61454  /*GG 14-09-99 Activates the model clipping planes
-// GG 110800  UNDER LINUX and MESA 3.2, nothing can be done until
-//    gl context is open first.
-*/
-#ifdef DEBUG
-#include <stdio.h>
-#endif
-
-#include <OpenGl_tgl_all.hxx>
-
-int EXPORT
-call_togl_inquireplane ()
-{
-  GLint maxplanes = 0;
-  if( GET_GL_CONTEXT() ) {
-#ifdef GER61454
-    glGetIntegerv( GL_MAX_CLIP_PLANES, &maxplanes);
-    maxplanes -= 2;   /* NOTE the 2 first planes are reserved for ZClipping */
-    if( maxplanes < 0 ) 
-      maxplanes = 0;
-#endif
-  }
-#ifdef DEBUG
-  printf(" @@@ call_togl_inquireplane. GL_MAX_CLIP_PLANES is %d\n",maxplanes);
-#endif
-  return maxplanes;
-}