File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
core/src/processing/opengl Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -3248,19 +3248,11 @@ public void init(GLAutoDrawable adrawable) {
32483248 context = adrawable .getContext ();
32493249 capabilities = adrawable .getChosenGLCapabilities ();
32503250
3251- gl = context .getGL ();
3252- String extensions = gl .glGetString (GL .GL_EXTENSIONS );
3253- if (-1 == extensions .indexOf ("_framebuffer_object" )) {
3254- throw new RuntimeException ("No framebuffer objects available" );
3255- }
3256- if (-1 == extensions .indexOf ("_vertex_buffer_object" )) {
3257- throw new RuntimeException ("No vertex buffer objects available" );
3258- }
3259- if (-1 == extensions .indexOf ("_vertex_shader" )) {
3260- throw new RuntimeException ("No vertex shaders available" );
3251+ if (!context .hasBasicFBOSupport ()) {
3252+ throw new RuntimeException ("No basic FBO support is available" );
32613253 }
3262- if (- 1 == extensions . indexOf ( "_fragment_shader" )) {
3263- throw new RuntimeException ("No fragment shaders available" );
3254+ if (! context . hasGLSL ( )) {
3255+ throw new RuntimeException ("No GLSL support is available" );
32643256 }
32653257 }
32663258
You can’t perform that action at this time.
0 commit comments