support for non power of two textures

This commit is contained in:
Eduardo Bart
2012-04-20 09:07:47 -03:00
parent f14706206a
commit d006e52c78
4 changed files with 43 additions and 15 deletions

View File

@@ -270,7 +270,12 @@ bool Graphics::canUseBilinearFiltering()
bool Graphics::canUseHardwareBuffers()
{
#ifndef OPENGL_ES
#if OPENGL_ES==2
return true;
#elif OPENGL_ES==1
// OpenGL ES 1.1 supports it but OpenGL ES 1.0 not
return false;
#else
// vertex buffer objects is supported by OpenGL 1.5
if(!GLEW_ARB_vertex_buffer_object)
return false;