From 1dd602dd830ff03b3a87f021c6183221b282a3ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Mon, 11 May 2015 14:27:38 -0700 Subject: [PATCH] EGL: Fixed compile error. --- src/glcontext_egl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/glcontext_egl.cpp b/src/glcontext_egl.cpp index 609a5c91..716986f9 100644 --- a/src/glcontext_egl.cpp +++ b/src/glcontext_egl.cpp @@ -255,6 +255,8 @@ EGL_IMPORT { bx::StaticMemoryBlockWriter writer(s_contextAttrs, sizeof(s_contextAttrs) ); + EGLint flags = 0; + if (hasEglKhrCreateContext) { bx::write(&writer, EGLint(EGL_CONTEXT_MAJOR_VERSION_KHR) ); @@ -263,8 +265,6 @@ EGL_IMPORT bx::write(&writer, EGLint(EGL_CONTEXT_MINOR_VERSION_KHR) ); bx::write(&writer, EGLint(BGFX_CONFIG_RENDERER_OPENGLES % 10) ); - EGLint flags = 0; - flags |= BGFX_CONFIG_DEBUG && hasEglKhrNoError ? 0 | EGL_CONTEXT_FLAG_NO_ERROR_BIT_KHR : 0