mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 15:01:16 +01:00
Fixed wrong casting.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@144 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
89cb286812
commit
fb8c0ed71d
@ -141,7 +141,7 @@ bool Renderer::Create2()
|
|||||||
glBindFramebufferEXT( GL_FRAMEBUFFER_EXT, s_uFramebuffer );
|
glBindFramebufferEXT( GL_FRAMEBUFFER_EXT, s_uFramebuffer );
|
||||||
|
|
||||||
// create the framebuffer targets
|
// create the framebuffer targets
|
||||||
glGenTextures(ARRAYSIZE((GLuint *)s_RenderTargets), (GLuint *)s_RenderTargets);
|
glGenTextures(ARRAYSIZE(s_RenderTargets), (GLuint *)s_RenderTargets);
|
||||||
for(int i = 0; i < ARRAYSIZE(s_RenderTargets); ++i) {
|
for(int i = 0; i < ARRAYSIZE(s_RenderTargets); ++i) {
|
||||||
glBindTexture(GL_TEXTURE_RECTANGLE_NV, s_RenderTargets[i]);
|
glBindTexture(GL_TEXTURE_RECTANGLE_NV, s_RenderTargets[i]);
|
||||||
// initialize to default
|
// initialize to default
|
||||||
@ -281,7 +281,7 @@ void Renderer::Shutdown(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( s_RenderTargets[0] ) {
|
if( s_RenderTargets[0] ) {
|
||||||
glDeleteTextures(ARRAYSIZE((GLuint *)s_RenderTargets), (GLuint *)s_RenderTargets);
|
glDeleteTextures(ARRAYSIZE(s_RenderTargets), (GLuint *)s_RenderTargets);
|
||||||
memset(s_RenderTargets, 0, sizeof(s_RenderTargets));
|
memset(s_RenderTargets, 0, sizeof(s_RenderTargets));
|
||||||
}
|
}
|
||||||
if( s_DepthTarget ) {
|
if( s_DepthTarget ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user