From 36963b91c7453584d1b510e755b1a5b206c04a19 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 3 Aug 2016 00:15:47 +0200 Subject: [PATCH] (GL capabilities) Packed depth stencil - if GLES is 3 or higher, assume yes, also query EXT_packed_depth_stencil --- gfx/drivers/gl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index 8429d3f343..13624c8aec 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -418,8 +418,11 @@ bool gl_check_capability(enum gl_capability_enum enum_idx) #ifdef HAVE_OPENGLES struct retro_hw_render_callback *hwr = video_driver_get_hw_context(); + if (gles3) + return true; if (hwr->stencil - && !gl_query_extension("OES_packed_depth_stencil")) + && !gl_query_extension("OES_packed_depth_stencil") + && !gl_query_extension("EXT_packed_depth_stencil")) return false; return true; #else