(GL) Nits

This commit is contained in:
twinaphex 2016-05-05 02:07:33 +02:00
parent 2c77616ec3
commit eb2a4f5c56
1 changed files with 12 additions and 11 deletions

View File

@ -2358,11 +2358,11 @@ static INLINE void gl_set_texture_fmts(gl_t *gl, bool rgb32)
static void gl_init_pbo_readback(gl_t *gl)
{
unsigned i;
struct scaler_ctx *scaler = NULL;
settings_t *settings = config_get_ptr();
bool *recording_enabled = recording_is_enabled();
(void)scaler;
#ifndef HAVE_OPENGLES3
struct scaler_ctx *scaler = NULL;
#endif
/* Only bother with this if we're doing GPU recording.
* Check recording_is_enabled() and not
@ -2424,6 +2424,7 @@ static const gfx_ctx_driver_t *gl_get_context(gl_t *gl)
#ifdef HAVE_OPENGLES
api = GFX_CTX_OPENGL_ES_API;
api_name = "OpenGL ES 2.0";
#ifdef HAVE_OPENGLES3
if (hwr->context_type == RETRO_HW_CONTEXT_OPENGLES3)
{