emulator opengl: implement glGetString
Added rcGetGLString token to renderControl to query a GL string constant from the current context from the host. Implement glGetString functinality in EGL so that the string value can be cached in the context structure and also implementation can be shared between GLESv1 and GLESv2. Also, fixed clientAPI context initialization check in eglMakeCurrent. The check was for the previously bounded context instead for the newly bounded context. Change-Id: I41c0b4ad462c9ad5bd5c66719b41509bb1b7a947
This commit is contained in:
committed by
David 'Digit' Turner
parent
5b675210ed
commit
1ef706f96f
@@ -1,6 +1,7 @@
|
||||
GL_ENRTY(GLint, rcGetRendererVersion)
|
||||
GL_ENTRY(EGLint, rcGetEGLVersion, EGLint *major, EGLint *minor)
|
||||
GL_ENTRY(EGLint, rcQueryEGLString, EGLenum name, void *buffer, EGLint bufferSize)
|
||||
GL_ENTRY(EGLint, rcGetGLString, EGLenum name, void *buffer, EGLint bufferSize)
|
||||
GL_ENTRY(EGLint, rcGetNumConfigs, uint32_t *numAttribs)
|
||||
GL_ENTRY(EGLint, rcGetConfigs, uint32_t bufSize, GLuint *buffer)
|
||||
GL_ENTRY(EGLint, rcChooseConfig, EGLint *attribs, uint32_t attribs_size, uint32_t *configs, uint32_t configs_size)
|
||||
|
||||
Reference in New Issue
Block a user