From 635329e0018e1eedec406adf39370170250337af Mon Sep 17 00:00:00 2001 From: hybrid Date: Sun, 5 Jun 2011 00:11:12 +0000 Subject: [PATCH] Add all supported features to the queryFeature set. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@3789 dfc29bdd-3216-0410-991c-e03cc46cb475 --- source/Irrlicht/COGLES2ExtensionHandler.h | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/source/Irrlicht/COGLES2ExtensionHandler.h b/source/Irrlicht/COGLES2ExtensionHandler.h index d005cfb5..d1cfc227 100644 --- a/source/Irrlicht/COGLES2ExtensionHandler.h +++ b/source/Irrlicht/COGLES2ExtensionHandler.h @@ -109,19 +109,34 @@ namespace irr switch ( feature ) { case EVDF_RENDER_TO_TARGET: + case EVDF_HARDWARE_TL: return true; case EVDF_MULTITEXTURE: return MultiTextureExtension; case EVDF_BILINEAR_FILTER: - return true; case EVDF_MIP_MAP: - return true; case EVDF_MIP_MAP_AUTO_UPDATE: - return Version > 100; // Supported in version 1.1 + return true; case EVDF_STENCIL_BUFFER: return StencilBuffer; case EVDF_TEXTURE_NSQUARE: return true; // non-square is always supported + case EVDF_ARB_GLSL: + case EVDF_TEXTURE_NPOT: + case EVDF_FRAMEBUFFER_OBJECT: + case EVDF_VERTEX_BUFFER_OBJECT: + case EVDF_ALPHA_TO_COVERAGE: + case EVDF_COLOR_MASK: + case EVDF_POLYGON_OFFSET: + case EVDF_BLEND_OPERATIONS: + return true; + case EVDF_MULTIPLE_RENDER_TARGETS: + case EVDF_MRT_BLEND: + case EVDF_MRT_COLOR_MASK: + case EVDF_MRT_BLEND_FUNC: + case EVDF_GEOMETRY_SHADER: + case EVDF_OCCLUSION_QUERY: + return false; default: return false; }