|
|
|
|
@ -450,45 +450,6 @@ Context::Context() {
|
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/* Disable extensions for which we need extension loader, as they would
|
|
|
|
|
crash otherwise. */ |
|
|
|
|
/** @todo Remove this when extension loader for ES is available */ |
|
|
|
|
#ifdef MAGNUM_TARGET_GLES |
|
|
|
|
#define _disable(prefix, vendor, extension) \ |
|
|
|
|
extensionStatus.reset(Extensions::prefix::vendor::extension::Index); |
|
|
|
|
#ifndef CORRADE_TARGET_NACL |
|
|
|
|
_disable(GL,CHROMIUM,map_sub) |
|
|
|
|
#endif |
|
|
|
|
_disable(GL,EXT,debug_label) |
|
|
|
|
_disable(GL,EXT,debug_marker) |
|
|
|
|
_disable(GL,EXT,disjoint_timer_query) |
|
|
|
|
_disable(GL,EXT,separate_shader_objects) |
|
|
|
|
_disable(GL,EXT,multisampled_render_to_texture) |
|
|
|
|
_disable(GL,EXT,robustness) |
|
|
|
|
_disable(GL,KHR,debug) |
|
|
|
|
_disable(GL,NV,read_buffer_front) |
|
|
|
|
_disable(GL,OES,mapbuffer) |
|
|
|
|
#ifdef MAGNUM_TARGET_GLES2 |
|
|
|
|
_disable(GL,ANGLE,framebuffer_blit) |
|
|
|
|
_disable(GL,ANGLE,framebuffer_multisample) |
|
|
|
|
_disable(GL,APPLE,framebuffer_multisample) |
|
|
|
|
_disable(GL,EXT,discard_framebuffer) |
|
|
|
|
_disable(GL,EXT,blend_minmax) |
|
|
|
|
#ifndef CORRADE_TARGET_NACL |
|
|
|
|
_disable(GL,EXT,occlusion_query_boolean) |
|
|
|
|
#endif |
|
|
|
|
_disable(GL,EXT,texture_storage) |
|
|
|
|
_disable(GL,EXT,map_buffer_range) |
|
|
|
|
_disable(GL,NV,draw_buffers) |
|
|
|
|
_disable(GL,NV,fbo_color_attachments) // ??
|
|
|
|
|
_disable(GL,NV,read_buffer) |
|
|
|
|
_disable(GL,NV,framebuffer_multisample) |
|
|
|
|
_disable(GL,OES,texture_3D) |
|
|
|
|
_disable(GL,OES,vertex_array_object) |
|
|
|
|
#endif |
|
|
|
|
#undef _disable |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/* Reset minimal required version to Version::None for whole array */ |
|
|
|
|
for(auto& i: _extensionRequiredVersion) i = Version::None; |
|
|
|
|
|
|
|
|
|
|