Skip to content

Commit

Permalink
set surface ready for GL watch faces too
Browse files Browse the repository at this point in the history
  • Loading branch information
codeanticode committed Aug 6, 2017
1 parent fc80c87 commit d697d75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/processing/opengl/PSurfaceGLES.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public PSurfaceGLES(PGraphics graphics, AppComponent component, SurfaceHolder ho
surfaceView = new SurfaceViewGLES(wallpaper, holder);
} else if (component.getKind() == AppComponent.WATCHFACE) {
watchface = (Gles2WatchFaceService)component;
surfaceView = null;
// Set as ready here, as watch faces don't have a surface view with a
// surfaceCreate() event to do it.
surfaceReady = true;
}
glsurf = (SurfaceViewGLES)surfaceView;
}
Expand Down

0 comments on commit d697d75

Please sign in to comment.