Removed EGL-specific context param refresh.

This commit is contained in:
Camilla Berglund 2012-08-02 03:01:31 +02:00
parent 7d222030da
commit a182acd585
1 changed files with 0 additions and 23 deletions

View File

@ -149,28 +149,6 @@ static _GLFWfbconfig* getFBConfigs(_GLFWwindow* window,
} }
//========================================================================
// Read back framebuffer parameters from the context
//========================================================================
static void refreshContextParams(_GLFWwindow* window)
{
// There is no clear definition of an "accelerated" context on X11/EGL, and
// true sounds better than false, so we hardcode true here
window->accelerated = GL_TRUE;
window->redBits = getConfigAttrib(window->EGL.config, EGL_RED_SIZE);
window->greenBits = getConfigAttrib(window->EGL.config, EGL_GREEN_SIZE);
window->blueBits = getConfigAttrib(window->EGL.config, EGL_BLUE_SIZE);
window->alphaBits = getConfigAttrib(window->EGL.config, EGL_ALPHA_SIZE);
window->depthBits = getConfigAttrib(window->EGL.config, EGL_DEPTH_SIZE);
window->stencilBits = getConfigAttrib(window->EGL.config, EGL_STENCIL_SIZE);
window->samples = getConfigAttrib(window->EGL.config, EGL_SAMPLES);
}
//======================================================================== //========================================================================
// Create the actual OpenGL(|ES) context // Create the actual OpenGL(|ES) context
//======================================================================== //========================================================================
@ -341,7 +319,6 @@ static int createContext(_GLFWwindow* window,
} }
window->EGL.config = config; window->EGL.config = config;
refreshContextParams(window);
return GL_TRUE; return GL_TRUE;
} }