EGL context fix, minor Tizen cleanup
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
#include "platform/tizen/TizenApplication.h"
|
||||
|
||||
|
||||
using namespace Tizen::Graphics::Opengl;
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
@@ -69,10 +66,6 @@ namespace lime {
|
||||
//mAccelX = 0;
|
||||
//mAccelY = 0;
|
||||
//mAccelZ = 0;
|
||||
mEGLDisplay = EGL_NO_DISPLAY;
|
||||
mEGLSurface = EGL_NO_SURFACE;
|
||||
mEGLConfig = null;
|
||||
mEGLContext = EGL_NO_CONTEXT;
|
||||
mForm = null;
|
||||
mTimer = null;
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ bool limeEGLResize(void *inWindow, int &ioWidth, int &ioHeight)
|
||||
|
||||
// Use GLES version 1.x
|
||||
EGLint contextParams[] = {EGL_CONTEXT_CLIENT_VERSION, g_eglVersion, EGL_NONE};
|
||||
g_eglContext = eglCreateContext(g_eglDisplay, g_eglConfig, NULL, NULL);
|
||||
g_eglContext = eglCreateContext(g_eglDisplay, g_eglConfig, EGL_NO_CONTEXT, contextParams);
|
||||
if (g_eglContext == EGL_NO_CONTEXT)
|
||||
{
|
||||
printf("Unable to create GLES context!\n");
|
||||
|
||||
Reference in New Issue
Block a user