use glBindFragDataLocation instead of glDrawBuffer

This commit is contained in:
degasus committed 2013-01-17 11:16:12 +01:00
1 parent b778b86e26
commit 3054d36534
3 files changed
+3 -8

No files matched your search

@@ -294,8 +294,7 @@ void TextureCache::TCacheEntry::FromRenderTarget(u32 dstAddr, unsigned int dstFo
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0);
GL_REPORT_FBO_ERROR();
GL_REPORT_ERRORD();
glDrawBuffer(GL_COLOR_ATTACHMENT0);
glActiveTexture(GL_TEXTURE0);
glBindTexture(GL_TEXTURE_2D, 0);
glBindTexture(GL_TEXTURE_RECTANGLE, read_texture);