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:
parent
6377b036d0
commit
066ebc8b47
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user