use glBindFragDataLocation instead of glDrawBuffer

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

View File

@ -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);