diff options
| author | hrydgard <hrydgard@gmail.com> | 2009-09-03 19:24:16 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2009-09-03 19:24:16 +0000 |
| commit | 562a4e25acd3bd4eb7183fbb5cd04891c4535423 (patch) | |
| tree | 298988fd772ec9ebf89710cb0f954997ee4fa996 /Source/Plugins/Plugin_VideoOGL/Src/TextureConverter.cpp | |
| parent | 2091fb3ceb1f3adbb4a39513dab894c99a98be34 (diff) | |
Some housecleaning around the D3D plugin, start of preparations to share even more code with the GL plugin.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4183 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/TextureConverter.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/TextureConverter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/TextureConverter.cpp b/Source/Plugins/Plugin_VideoOGL/Src/TextureConverter.cpp index 2c00b30d8c..3ea35dcbb3 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/TextureConverter.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/TextureConverter.cpp @@ -169,7 +169,7 @@ void Shutdown() void EncodeToRamUsingShader(FRAGMENTSHADER& shader, GLuint srcTexture, const TargetRectangle& sourceRc, u8* destAddr, int dstWidth, int dstHeight, bool linearFilter) { - Renderer::ResetGLState(); + Renderer::ResetAPIState(); // switch to texture converter frame buffer // attach render buffer as color destination @@ -218,13 +218,13 @@ void EncodeToRamUsingShader(FRAGMENTSHADER& shader, GLuint srcTexture, const Tar GL_REPORT_ERRORD(); Renderer::SetFramebuffer(0); - Renderer::RestoreGLState(); + Renderer::RestoreAPIState(); VertexShaderManager::SetViewportChanged(); glBindTexture(GL_TEXTURE_RECTANGLE_ARB, 0); TextureMngr::DisableStage(0); - Renderer::RestoreGLState(); + Renderer::RestoreAPIState(); GL_REPORT_ERRORD(); } @@ -314,7 +314,7 @@ void DecodeToTexture(u32 xfbAddr, int srcWidth, int srcHeight, GLuint destTextur return; } - Renderer::ResetGLState(); + Renderer::ResetAPIState(); float srcFormatFactor = 0.5f; float srcFmtWidth = srcWidth * srcFormatFactor; @@ -362,7 +362,7 @@ void DecodeToTexture(u32 xfbAddr, int srcWidth, int srcHeight, GLuint destTextur Renderer::SetFramebuffer(0); - Renderer::RestoreGLState(); + Renderer::RestoreAPIState(); GL_REPORT_ERRORD(); } |
