Browse Source

Added missing extensions into Context.cpp.

pull/7/head
Vladimír Vondruš 14 years ago
parent
commit
99ac6ff812
  1. 5
      src/Context.cpp
  2. 3
      src/Extensions.h

5
src/Context.cpp

@ -38,7 +38,10 @@ const std::vector<Extension>& Extension::extensions(Version version) {
static const std::vector<Extension> empty; static const std::vector<Extension> empty;
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES
static const std::vector<Extension> extensions{ static const std::vector<Extension> extensions{
_extension(GL,EXT,texture_filter_anisotropic)}; _extension(GL,AMD,vertex_shader_layer),
_extension(GL,AMD,shader_trinary_minmax),
_extension(GL,EXT,texture_filter_anisotropic),
_extension(GL,EXT,direct_state_access)};
static const std::vector<Extension> extensions300{ static const std::vector<Extension> extensions300{
_extension(GL,APPLE,flush_buffer_range), _extension(GL,APPLE,flush_buffer_range),
_extension(GL,APPLE,vertex_array_object), _extension(GL,APPLE,vertex_array_object),

3
src/Extensions.h

@ -48,6 +48,9 @@ namespace Extensions {
constexpr static Version coreVersion() { return Version::_coreVersion; } \ constexpr static Version coreVersion() { return Version::_coreVersion; } \
constexpr static const char* string() { return #prefix "_" #vendor "_" #extension; } \ constexpr static const char* string() { return #prefix "_" #vendor "_" #extension; } \
}; };
/* IMPORTANT: don't forget to add new extensions also in Context.cpp */
namespace GL { namespace GL {
#line 1 #line 1
namespace AMD { namespace AMD {

Loading…
Cancel
Save