Skip to content

Commit

Permalink
Comment out GL capability overrides. Causes framebuffer problems on m…
Browse files Browse the repository at this point in the history
…acOS.
  • Loading branch information
neilcsmith-net committed Jul 28, 2020
1 parent bcc12e6 commit fdaa7aa
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions processing-lwjgl/src/main/java/processing/lwjgl/PLWJGL.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,42 +107,42 @@ public PLWJGL(PGraphicsOpenGL pg) {
glu = new PGLU();
}

@Override
protected boolean hasFBOs() {
return GL.getCapabilities().GL_ARB_framebuffer_object;
}

@Override
protected boolean hasShaders() {
// It is enough to check GL_ARB_shading_language_100 because it depends on
// ARB_shader_objects, ARB_fragment_shader and ARB_vertex_shader.
return GL.getCapabilities().GL_ARB_shading_language_100;
}

@Override
protected boolean hasNpotTexSupport() {
return GL.getCapabilities().GL_ARB_texture_non_power_of_two;
}

@Override
protected boolean hasAutoMipmapGenSupport() {
return GL.getCapabilities().glGenerateMipmap != 0;
}

@Override
protected boolean hasFboMultisampleSupport() {
return GL.getCapabilities().GL_ARB_framebuffer_object;
}

@Override
protected boolean hasPackedDepthStencilSupport() {
return GL.getCapabilities().GL_ARB_framebuffer_object;
}

@Override
protected boolean hasAnisoSamplingSupport() {
return GL.getCapabilities().GL_ARB_texture_filter_anisotropic;
}
// @Override
// protected boolean hasFBOs() {
// return GL.getCapabilities().GL_ARB_framebuffer_object;
// }
//
// @Override
// protected boolean hasShaders() {
// // It is enough to check GL_ARB_shading_language_100 because it depends on
// // ARB_shader_objects, ARB_fragment_shader and ARB_vertex_shader.
// return GL.getCapabilities().GL_ARB_shading_language_100;
// }
//
// @Override
// protected boolean hasNpotTexSupport() {
// return GL.getCapabilities().GL_ARB_texture_non_power_of_two;
// }
//
// @Override
// protected boolean hasAutoMipmapGenSupport() {
// return GL.getCapabilities().glGenerateMipmap != 0;
// }
//
// @Override
// protected boolean hasFboMultisampleSupport() {
// return GL.getCapabilities().GL_ARB_framebuffer_object;
// }
//
// @Override
// protected boolean hasPackedDepthStencilSupport() {
// return GL.getCapabilities().GL_ARB_framebuffer_object;
// }
//
// @Override
// protected boolean hasAnisoSamplingSupport() {
// return GL.getCapabilities().GL_ARB_texture_filter_anisotropic;
// }


///////////////////////////////////////////////////////////
Expand Down

0 comments on commit fdaa7aa

Please sign in to comment.