Бранимир Караџић %!s(int64=7) %!d(string=hai) anos
pai
achega
916d159965
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/renderer_gl.cpp

+ 5 - 1
src/renderer_gl.cpp

@@ -3007,10 +3007,14 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) );
 			case Handle::Texture:
 				{
 					GLint id = m_textures[_handle.idx].m_id;
-					if (0 != id /* write only texture */)
+					if (0 != id)
 					{
 						GL_CHECK(glObjectLabel(GL_TEXTURE, id, len, _name) );
 					}
+					else
+					{
+						GL_CHECK(glObjectLabel(GL_RENDERBUFFER, m_textures[_handle.idx].m_rbo, len, _name) );
+					}
 				}
 				break;