X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Ftexture3d.cpp;h=17adb6a109369ed6ca3053d43ee740f851cd6cb6;hp=858ca47826afbdc7470df2d91970ba9909a22761;hb=a4ec5410595ddf37bfbc0e85ad87d31a9cbf94f1;hpb=19583522999f9ca2cddb178691633bc20f714b01 diff --git a/source/texture3d.cpp b/source/texture3d.cpp index 858ca478..17adb6a1 100644 --- a/source/texture3d.cpp +++ b/source/texture3d.cpp @@ -5,11 +5,12 @@ Copyright © 2007 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ -#define GL_GLEXT_PROTOTYPES #include #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(); }