X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fextension.cpp;h=2dc298c1f5105f13892d2d499567fd0112424a1e;hb=702de88f837584fd046d787f7199e4560ceda9c4;hp=b65172fc691dc4b71e8ba2d4c5dc6e03eac9bfa2;hpb=e79c72cf90dacaa47d82d65d3e6c4252f055f454;p=libs%2Fgl.git diff --git a/source/extension.cpp b/source/extension.cpp index b65172fc..2dc298c1 100644 --- a/source/extension.cpp +++ b/source/extension.cpp @@ -12,6 +12,15 @@ #include "extension.h" #include "gl.h" +#ifndef GL_VERSION_3_0 +#define GL_NUM_EXTENSIONS 0x821D +#endif + +#ifndef GL_VERSION_3_2 +#define GL_CONTEXT_CORE_PROFILE_BIT 0x00000001 +#define GL_CONTEXT_PROFILE_MASK 0x9126 +#endif + using namespace std; namespace Msp { @@ -229,7 +238,7 @@ const Version &get_glsl_version() ExtFunc *get_proc_address(const string &name) { -#if defined(WIN32) +#if defined(_WIN32) return reinterpret_cast(wglGetProcAddress(name.c_str())); #elif defined(__APPLE__) (void)name;