mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
added needSharedObjectSync function to PJOGL
This commit is contained in:
@@ -51,6 +51,7 @@ import com.jogamp.opengl.GLCapabilitiesImmutable;
|
||||
import com.jogamp.opengl.GLContext;
|
||||
import com.jogamp.opengl.GLDrawable;
|
||||
import com.jogamp.opengl.fixedfunc.GLMatrixFunc;
|
||||
import com.jogamp.opengl.GLRendererQuirks;
|
||||
import com.jogamp.opengl.glu.GLU;
|
||||
import com.jogamp.opengl.glu.GLUtessellator;
|
||||
import com.jogamp.opengl.glu.GLUtessellatorCallbackAdapter;
|
||||
@@ -183,6 +184,11 @@ public class PJOGL extends PGL {
|
||||
}
|
||||
|
||||
|
||||
public boolean needSharedObjectSync() {
|
||||
return gl.getContext().hasRendererQuirk(GLRendererQuirks.NeedSharedObjectSync);
|
||||
}
|
||||
|
||||
|
||||
public void setFps(float fps) {
|
||||
if (!setFps || targetFps != fps) {
|
||||
if (60 < fps) {
|
||||
|
||||
Reference in New Issue
Block a user