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
@@ -38,7 +38,7 @@ typedef std::set<PendingCropRect *> PendingCropRectSet;
|
||||
|
||||
class RendererContext : public RendererObject {
|
||||
public:
|
||||
static RendererContext *create(EGLDisplay dpy, EGLConfig config, RendererContext *shareCtx);
|
||||
static RendererContext *create(EGLDisplay dpy, EGLConfig config, RendererContext *shareCtx, int version);
|
||||
EGLContext eglContext() { return m_ctx; }
|
||||
int destroy();
|
||||
GLDecoderContextData & decoderContextData() { return m_contextData; }
|
||||
@@ -99,10 +99,12 @@ private:
|
||||
EGLDisplay m_dpy;
|
||||
EGLContext m_ctx;
|
||||
GLDecoderContextData m_contextData;
|
||||
int m_version;
|
||||
|
||||
RendererContext(EGLDisplay dpy, EGLContext ctx) :
|
||||
RendererContext(EGLDisplay dpy, EGLContext ctx, int version) :
|
||||
m_dpy(dpy),
|
||||
m_ctx(ctx)
|
||||
m_ctx(ctx),
|
||||
m_version(version)
|
||||
{
|
||||
#ifdef PVR_WAR
|
||||
m_activeTexture = 0;
|
||||
|
||||
Reference in New Issue
Block a user