Skip to content

Commit

Permalink
No need to force power of two textures with GLES 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
j-jorge committed Sep 6, 2017
1 parent 92662fd commit 40f2158
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions bear-engine/core/src/visual/code/gl_renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,6 @@ GLuint bear::visual::gl_renderer::create_texture( screen_size_type& size )
{
boost::mutex::scoped_lock lock( m_mutex.gl_access );

unsigned int v;
for ( v=1; (v < size.x) && /* overflow */ (v != 0); v *= 2 ) { }

size.x = v;

for ( v=1; (v < size.y) && /* overflow */ (v != 0); v *= 2 ) { }

size.y = v;

GLuint texture_id;

make_current();
Expand Down

0 comments on commit 40f2158

Please sign in to comment.