mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-27 04:28:52 -05:00
Removed EGL-specific context param refresh.
This commit is contained in:
parent
7d222030da
commit
a182acd585
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user