diff --git a/src/share/native/sun/java2d/opengl/OGLContext.c b/src/share/native/sun/java2d/opengl/OGLContext.c index b9c60046070544fbc180a469adb91314efdb29ea..d1484f73e37d69a4f7e46ebbdaddf5c19df8a5f1 100644 --- a/src/share/native/sun/java2d/opengl/OGLContext.c +++ b/src/share/native/sun/java2d/opengl/OGLContext.c @@ -662,6 +662,13 @@ OGLContext_IsFBObjectExtensionAvailable(JNIEnv *env, 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,