src/share/native/sun/java2d/opengl/OGLContext.c

Print this page

        

@@ -660,10 +660,17 @@
                                          "GL_EXT_framebuffer_object"))
     {
         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,
                                  "sun/java2d/opengl/OGLSurfaceData",
                                  "isFBObjectEnabled", "Z").z;