Removed legacy texture extension checks.

This commit is contained in:
Camilla Berglund 2010-09-08 14:55:52 +02:00
parent 3f0221ccc0
commit 8bc1a5da16
5 changed files with 0 additions and 18 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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");

View File

@ -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;