Sfoglia il codice sorgente

Fixed render target glReadBuffer always GL_NONE issue

Mark Sibly 8 anni fa
parent
commit
770a909279
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      modules/mojo/graphics/rendertarget.monkey2

+ 1 - 1
modules/mojo/graphics/rendertarget.monkey2

@@ -76,7 +76,7 @@ Class RenderTarget Extends Resource
 		Endif
 
 		If glexts.GL_read_buffer
-			glReadBuffer( GL_NONE )
+			glReadBuffer( _drawBufs ? _drawBufs[0] Else GL_NONE )
 		Endif
 
 		CheckStatus()