Skip to content

Commit d697d75

Browse files
committed
set surface ready for GL watch faces too
1 parent fc80c87 commit d697d75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/processing/opengl/PSurfaceGLES.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ public PSurfaceGLES(PGraphics graphics, AppComponent component, SurfaceHolder ho
6666
surfaceView = new SurfaceViewGLES(wallpaper, holder);
6767
} else if (component.getKind() == AppComponent.WATCHFACE) {
6868
watchface = (Gles2WatchFaceService)component;
69-
surfaceView = null;
69+
// Set as ready here, as watch faces don't have a surface view with a
70+
// surfaceCreate() event to do it.
71+
surfaceReady = true;
7072
}
7173
glsurf = (SurfaceViewGLES)surfaceView;
7274
}

0 commit comments

Comments
 (0)