EGL context fix, minor Tizen cleanup

This commit is contained in:
Joshua Granick
2014-02-26 00:43:18 -08:00
parent 5f00c9fd69
commit c56e6cafeb
4 changed files with 3 additions and 15 deletions

View File

@@ -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;

View File

@@ -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");