am b5f5dce4: Merge " small changes to the code before the commit for supporting windows os"

* commit 'b5f5dce4c722e797d9acbfaea24123dfbc58a82b':
  small changes to the code before the commit for supporting windows os
This commit is contained in:
David Turner
2011-05-16 07:15:39 -07:00
committed by Android Git Automerger
3 changed files with 3 additions and 4 deletions

View File

@@ -144,7 +144,6 @@ void queryConfigs(EGLNativeDisplayType dpy,ConfigsList& listOut) {
EglConfig* conf = pixelFormatToConfig(dpy,&frmtList[i]); EglConfig* conf = pixelFormatToConfig(dpy,&frmtList[i]);
if(conf) listOut.push_back(conf); if(conf) listOut.push_back(conf);
} }
listOut.sort();
XFree(frmtList); XFree(frmtList);
} }

View File

@@ -53,6 +53,7 @@ void GLEScontext::init() {
android::Mutex::Autolock mutex(s_lock); android::Mutex::Autolock mutex(s_lock);
if(!m_initialized) { if(!m_initialized) {
int maxTexUnits; int maxTexUnits;
s_glDispatch.dispatchFuncs();
s_glDispatch.glGetIntegerv(GL_MAX_CLIP_PLANES,&s_glSupport.maxClipPlane); s_glDispatch.glGetIntegerv(GL_MAX_CLIP_PLANES,&s_glSupport.maxClipPlane);
s_glDispatch.glGetIntegerv(GL_MAX_LIGHTS,&s_glSupport.maxLights); s_glDispatch.glGetIntegerv(GL_MAX_LIGHTS,&s_glSupport.maxLights);
s_glDispatch.glGetIntegerv(GL_MAX_TEXTURE_SIZE,&s_glSupport.maxTexSize); s_glDispatch.glGetIntegerv(GL_MAX_TEXTURE_SIZE,&s_glSupport.maxTexSize);
@@ -67,7 +68,6 @@ void GLEScontext::init() {
GLEScontext::GLEScontext():m_glError(GL_NO_ERROR),m_activeTexture(0),m_arrayBuffer(0),m_elementBuffer(0),m_pointsIndex(-1),m_initialized(false) { GLEScontext::GLEScontext():m_glError(GL_NO_ERROR),m_activeTexture(0),m_arrayBuffer(0),m_elementBuffer(0),m_pointsIndex(-1),m_initialized(false) {
s_glDispatch.dispatchFuncs();
m_map[GL_COLOR_ARRAY] = new GLESpointer(); m_map[GL_COLOR_ARRAY] = new GLESpointer();
m_map[GL_NORMAL_ARRAY] = new GLESpointer(); m_map[GL_NORMAL_ARRAY] = new GLESpointer();