mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 14:19:19 +01:00
fixes to lwjgl renderer
This commit is contained in:
@@ -612,11 +612,16 @@ public abstract class PGL {
|
||||
// protected abstract void swapBuffers();
|
||||
|
||||
|
||||
protected boolean threadIsCurrent() {
|
||||
public boolean threadIsCurrent() {
|
||||
return Thread.currentThread() == glThread;
|
||||
}
|
||||
|
||||
|
||||
public void setThread(Thread thread) {
|
||||
glThread = thread;
|
||||
}
|
||||
|
||||
|
||||
protected void beginGL() { }
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user