mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 06:04:34 +00:00
Removed legacy texture extension checks.
This commit is contained in:
parent
3f0221ccc0
commit
8bc1a5da16
@ -177,8 +177,6 @@ struct _GLFWwin_struct {
|
||||
int samples;
|
||||
|
||||
// OpenGL extensions and context attributes
|
||||
int has_GL_SGIS_generate_mipmap;
|
||||
int has_GL_ARB_texture_non_power_of_two;
|
||||
int glMajor, glMinor, glRevision;
|
||||
int glForward, glDebug, glProfile;
|
||||
|
||||
|
@ -109,8 +109,6 @@ struct _GLFWwin_struct {
|
||||
int samples;
|
||||
|
||||
// OpenGL extensions and context attributes
|
||||
int has_GL_SGIS_generate_mipmap;
|
||||
int has_GL_ARB_texture_non_power_of_two;
|
||||
int glMajor, glMinor, glRevision;
|
||||
int glForward, glDebug, glProfile;
|
||||
|
||||
|
@ -321,8 +321,6 @@ struct _GLFWwin_struct {
|
||||
int samples;
|
||||
|
||||
// OpenGL extensions and context attributes
|
||||
int has_GL_SGIS_generate_mipmap;
|
||||
int has_GL_ARB_texture_non_power_of_two;
|
||||
int glMajor, glMinor, glRevision;
|
||||
int glForward, glDebug, glProfile;
|
||||
|
||||
|
10
lib/window.c
10
lib/window.c
@ -530,16 +530,6 @@ GLFWAPI int glfwOpenWindow(int width, int height,
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
// Do we have non-power-of-two textures (added to core in version 2.0)?
|
||||
_glfwWin.has_GL_ARB_texture_non_power_of_two =
|
||||
(_glfwWin.glMajor >= 2) ||
|
||||
glfwExtensionSupported("GL_ARB_texture_non_power_of_two");
|
||||
|
||||
// Do we have automatic mipmap generation (added to core in version 1.4)?
|
||||
_glfwWin.has_GL_SGIS_generate_mipmap =
|
||||
(_glfwWin.glMajor >= 2) || (_glfwWin.glMinor >= 4) ||
|
||||
glfwExtensionSupported("GL_SGIS_generate_mipmap");
|
||||
|
||||
if (_glfwWin.glMajor > 2)
|
||||
{
|
||||
_glfwWin.GetStringi = (PFNGLGETSTRINGIPROC) glfwGetProcAddress("glGetStringi");
|
||||
|
@ -204,8 +204,6 @@ struct _GLFWwin_struct {
|
||||
int samples;
|
||||
|
||||
// OpenGL extensions and context attributes
|
||||
int has_GL_SGIS_generate_mipmap;
|
||||
int has_GL_ARB_texture_non_power_of_two;
|
||||
int glMajor, glMinor, glRevision;
|
||||
int glForward, glDebug, glProfile;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user