Skip to content

Commit 9a98747

Browse files
committed
setting the thread object in non-primary surfaces
1 parent 51b0409 commit 9a98747

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/processing/opengl/PGLES.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ protected void registerListeners() { }
136136
protected void getGL(PGL pgl) {
137137
PGLES pgles = (PGLES)pgl;
138138
this.gl = pgles.gl;
139+
setThread(pgles.glThread);
139140
}
140141

141142

@@ -213,6 +214,7 @@ public void onSurfaceCreated(GL10 igl, EGLConfig config) {
213214
gl = igl;
214215
context = ((EGL10)EGLContext.getEGL()).eglGetCurrentContext();
215216
glContext = context.hashCode();
217+
glThread = Thread.currentThread();
216218

217219
if (!hasFBOs()) {
218220
throw new RuntimeException(MISSING_FBO_ERROR);

0 commit comments

Comments
 (0)