Loading common/gal/opengl/opengl_compositor.cpp +2 −12 Original line number Diff line number Diff line Loading @@ -91,12 +91,10 @@ unsigned int OPENGL_COMPOSITOR::CreateBuffer() { wxASSERT( m_initialized ); unsigned int maxBuffers, maxWidth, maxHeight; unsigned int maxBuffers; // Get the maximum size & number of buffers // Get the maximum number of buffers glGetIntegerv( GL_MAX_COLOR_ATTACHMENTS, (GLint*) &maxBuffers ); glGetIntegerv( GL_MAX_FRAMEBUFFER_WIDTH, (GLint*) &maxWidth ); glGetIntegerv( GL_MAX_FRAMEBUFFER_HEIGHT, (GLint*) &maxHeight ); if( usedBuffers() >= maxBuffers ) { Loading @@ -106,14 +104,6 @@ unsigned int OPENGL_COMPOSITOR::CreateBuffer() return 0; // Unfortunately we have no more free buffers left } if( m_width > maxWidth || m_height > maxHeight ) { DisplayError( NULL, wxString::Format( wxT( "Max handled framebuffer size is %d x %d," " but %x x %x is required." ), maxWidth, maxHeight, m_width, m_height ) ); return 0; } // GL_COLOR_ATTACHMENTn are consecutive integers GLuint attachmentPoint = GL_COLOR_ATTACHMENT0 + usedBuffers(); GLuint textureTarget; Loading Loading
common/gal/opengl/opengl_compositor.cpp +2 −12 Original line number Diff line number Diff line Loading @@ -91,12 +91,10 @@ unsigned int OPENGL_COMPOSITOR::CreateBuffer() { wxASSERT( m_initialized ); unsigned int maxBuffers, maxWidth, maxHeight; unsigned int maxBuffers; // Get the maximum size & number of buffers // Get the maximum number of buffers glGetIntegerv( GL_MAX_COLOR_ATTACHMENTS, (GLint*) &maxBuffers ); glGetIntegerv( GL_MAX_FRAMEBUFFER_WIDTH, (GLint*) &maxWidth ); glGetIntegerv( GL_MAX_FRAMEBUFFER_HEIGHT, (GLint*) &maxHeight ); if( usedBuffers() >= maxBuffers ) { Loading @@ -106,14 +104,6 @@ unsigned int OPENGL_COMPOSITOR::CreateBuffer() return 0; // Unfortunately we have no more free buffers left } if( m_width > maxWidth || m_height > maxHeight ) { DisplayError( NULL, wxString::Format( wxT( "Max handled framebuffer size is %d x %d," " but %x x %x is required." ), maxWidth, maxHeight, m_width, m_height ) ); return 0; } // GL_COLOR_ATTACHMENTn are consecutive integers GLuint attachmentPoint = GL_COLOR_ATTACHMENT0 + usedBuffers(); GLuint textureTarget; Loading