Skip to content

Commit 8dd8927

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Fix crash in presentation time implementation" into main
2 parents 12f83cf + ab851c7 commit 8dd8927

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

opengl/libs/EGL/egl_platform_entries.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,6 +2111,10 @@ EGLBoolean eglPresentationTimeANDROIDImpl(EGLDisplay dpy, EGLSurface surface,
21112111
}
21122112

21132113
egl_surface_t const* const s = get_surface(surface);
2114+
if (!s->getNativeWindow()) {
2115+
setError(EGL_BAD_SURFACE, EGL_FALSE);
2116+
return EGL_FALSE;
2117+
}
21142118
native_window_set_buffers_timestamp(s->getNativeWindow(), time);
21152119

21162120
return EGL_TRUE;

0 commit comments

Comments
 (0)