emulator opengl: context version param
add version parameter when creating new context Change-Id: I3e36796dd4e582b5deda0da2aaf764ceba92a1d1
This commit is contained in:
committed by
David 'Digit' Turner
parent
0c814b227c
commit
25af30c464
@@ -88,7 +88,7 @@ int Renderer::destroySurface(RenderingThread *thread, const ClientHandle &handle
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Renderer::createContext(RenderingThread *thread, const ClientHandle &handle, ClientHandle shareCtx)
|
||||
int Renderer::createContext(RenderingThread *thread, const ClientHandle &handle, ClientHandle shareCtx, int version)
|
||||
{
|
||||
android::Mutex::Autolock(this->m_mutex);
|
||||
|
||||
@@ -104,7 +104,7 @@ int Renderer::createContext(RenderingThread *thread, const ClientHandle &handle,
|
||||
RendererContext *ctx =
|
||||
RendererContext::create(m_dpy,
|
||||
RendererSurface::getEglConfig(m_dpy, RendererSurface::CONFIG_DEPTH),
|
||||
shared);
|
||||
shared, version);
|
||||
if (ctx == NULL) {
|
||||
fprintf(stderr, "failed to create context\n");
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user