Hi everyone,
In my application i have the current setup under windows :
- Main Thread with a standard WndProc and a classic while loop in the main()
- Game Thread : handle logic and display
In the main thread im creating the window and setup the device but when i trigger the game thread i setup a new GL Context to be able to createtexture and rendering stuff. by this piece of code :
localContext = eglCreateContext(CIgGLRenderer::GetInstance()->eglDisplay, CIgGLRenderer::GetInstance()->eglConfig, CIgGLRenderer::GetInstance()->eglContext, NULL);
localSurface = eglCreateWindowSurface(CIgGLRenderer::GetInstance()->eglDisplay, CIgGLRenderer::GetInstance()->eglConfig, CIgGLRenderer::GetInstance()->eglWindow, NULL);
eglMakeCurrent(CIgGLRenderer::GetInstance()->eglDisplay, localSurface, localSurface, localContext);
By doing this it seems that everything went fine but soon as i make a
eglSwapBuffers(eglDisplay, g_pRenderContext->localSurface);
i just get a blank screen with the correct clear color but no quads at all.
I searched for a solution but so far no luck.
Anyone can help ?
Thanks !