]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture3d.cpp
Windows compatibility:
[libs/gl.git] / source / texture3d.cpp
index 858ca47826afbdc7470df2d91970ba9909a22761..17adb6a109369ed6ca3053d43ee740f851cd6cb6 100644 (file)
@@ -5,11 +5,12 @@ Copyright © 2007  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
-#define GL_GLEXT_PROTOTYPES
 #include <cmath>
 #include "except.h"
+#include "extension.h"
 #include "ilwrap.h"
 #include "texture3d.h"
+#include "version_1_2.h"
 
 using namespace std;
 
@@ -21,6 +22,8 @@ Texture3D::Texture3D():
        height(0),
        depth(0)
 {
+       require_version(1, 3);
+
        target=GL_TEXTURE_3D;
        bind();
 }