src/java.desktop/unix/native/common/java2d/opengl/GLXGraphicsConfig.c
branchihse-warnings-cflags-branch
changeset 56230 489867818774
parent 47216 71c04702a3d5
equal deleted inserted replaced
56229:0015bf3a82e0 56230:489867818774
    57  * If any of these requirements are not met, this method will return
    57  * If any of these requirements are not met, this method will return
    58  * JNI_FALSE, indicating there is no hope of using GLX/OpenGL for any
    58  * JNI_FALSE, indicating there is no hope of using GLX/OpenGL for any
    59  * GraphicsConfig in the environment.
    59  * GraphicsConfig in the environment.
    60  */
    60  */
    61 static jboolean
    61 static jboolean
    62 GLXGC_InitGLX()
    62 GLXGC_InitGLX(void)
    63 {
    63 {
    64     int errorbase, eventbase;
    64     int errorbase, eventbase;
    65     const char *version;
    65     const char *version;
    66 
    66 
    67     J2dRlsTraceLn(J2D_TRACE_INFO, "GLXGC_InitGLX");
    67     J2dRlsTraceLn(J2D_TRACE_INFO, "GLXGC_InitGLX");
   113  * this method will attempt to initialize GLX (and all the necessary function
   113  * this method will attempt to initialize GLX (and all the necessary function
   114  * symbols) if it has not been already.  The AWT_LOCK must be acquired before
   114  * symbols) if it has not been already.  The AWT_LOCK must be acquired before
   115  * calling this method.
   115  * calling this method.
   116  */
   116  */
   117 jboolean
   117 jboolean
   118 GLXGC_IsGLXAvailable()
   118 GLXGC_IsGLXAvailable(void)
   119 {
   119 {
   120     static jboolean glxAvailable = JNI_FALSE;
   120     static jboolean glxAvailable = JNI_FALSE;
   121     static jboolean firstTime = JNI_TRUE;
   121     static jboolean firstTime = JNI_TRUE;
   122 
   122 
   123     J2dTraceLn(J2D_TRACE_INFO, "GLXGC_IsGLXAvailable");
   123     J2dTraceLn(J2D_TRACE_INFO, "GLXGC_IsGLXAvailable");