1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Enable DepthBuffer_FindBuffer function.

This commit is contained in:
Sergey Lipskiy 2014-01-08 23:22:42 +07:00
parent 6377b036d0
commit 066ebc8b47
2 changed files with 4 additions and 7 deletions

View File

@ -201,24 +201,21 @@ void DepthBuffer_SetBuffer( u32 address )
}
depthBuffer.current = current;
}
/*
DepthBuffer *DepthBuffer_FindBuffer( u32 address )
{
DepthBuffer *current = depthBuffer.top;
while (current)
{
if (current->address == address) {
if (OGL.frameBufferTextures)
ogl_glFramebufferRenderbuffer(GL_DRAW_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, current->renderbuf);
if (current->address == address)
return current;
}
current = current->lower;
}
return NULL;
}
*/
void DepthBuffer_ClearBuffer() {
if (!OGL.bImageTexture)
return;

View File

@ -33,6 +33,6 @@ void DepthBuffer_Destroy();
void DepthBuffer_SetBuffer( u32 address );
void DepthBuffer_RemoveBuffer( u32 address );
void DepthBuffer_ClearBuffer();
//DepthBuffer *DepthBuffer_FindBuffer( u32 address );
DepthBuffer *DepthBuffer_FindBuffer( u32 address );
#endif