GL: Don't create a new texture every time the contents of one is updated. Probably not a noticable speed boost, but still .. it's good to be nice to GL :P

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1531 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard
2008-12-14 14:28:41 +00:00
parent b5b43f9408
commit f3eda7d85a
2 changed files with 19 additions and 19 deletions

View File

@ -142,7 +142,7 @@ void EncodeToRam(GLuint srcTexture, const TRectangle& sourceRc,
TextureMngr::DisableStage(i);
GL_REPORT_ERRORD();
glViewport(0, 0, dstFmtWidth, dstHeight);
glViewport(0, 0, (GLsizei)dstFmtWidth, (GLsizei)dstHeight);
glEnable(GL_FRAGMENT_PROGRAM_ARB);
glBindProgramARB( GL_FRAGMENT_PROGRAM_ARB, s_rgbToYuyvProgram.glprogid);