8016254: several sun/java2d/OpenGL tests failed with SIGFPE
authorvadim
Wed, 26 Jun 2013 13:49:16 +0400
changeset 18516 1f7d58c5f2e7
parent 18118 aa253c91de2e
child 18517 ea7576f76b3a
8016254: several sun/java2d/OpenGL tests failed with SIGFPE Reviewed-by: prr, bae
jdk/src/share/native/sun/java2d/opengl/OGLContext.c
--- a/jdk/src/share/native/sun/java2d/opengl/OGLContext.c	Mon Jun 17 10:34:24 2013 -0700
+++ b/jdk/src/share/native/sun/java2d/opengl/OGLContext.c	Wed Jun 26 13:49:16 2013 +0400
@@ -662,6 +662,13 @@
         return JNI_FALSE;
     }
 
+    // next see if the depth texture extension is available
+    if (!OGLContext_IsExtensionAvailable(extString,
+                                         "GL_ARB_depth_texture"))
+    {
+        return JNI_FALSE;
+    }
+
     // next see if the fbobject system property has been enabled
     isFBObjectEnabled =
         JNU_GetStaticFieldByName(env, NULL,