mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +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.current = current;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
DepthBuffer *DepthBuffer_FindBuffer( u32 address )
|
DepthBuffer *DepthBuffer_FindBuffer( u32 address )
|
||||||
{
|
{
|
||||||
DepthBuffer *current = depthBuffer.top;
|
DepthBuffer *current = depthBuffer.top;
|
||||||
|
|
||||||
while (current)
|
while (current)
|
||||||
{
|
{
|
||||||
if (current->address == address) {
|
if (current->address == address)
|
||||||
if (OGL.frameBufferTextures)
|
|
||||||
ogl_glFramebufferRenderbuffer(GL_DRAW_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, current->renderbuf);
|
|
||||||
return current;
|
return current;
|
||||||
}
|
|
||||||
current = current->lower;
|
current = current->lower;
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
void DepthBuffer_ClearBuffer() {
|
void DepthBuffer_ClearBuffer() {
|
||||||
if (!OGL.bImageTexture)
|
if (!OGL.bImageTexture)
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -33,6 +33,6 @@ void DepthBuffer_Destroy();
|
||||||
void DepthBuffer_SetBuffer( u32 address );
|
void DepthBuffer_SetBuffer( u32 address );
|
||||||
void DepthBuffer_RemoveBuffer( u32 address );
|
void DepthBuffer_RemoveBuffer( u32 address );
|
||||||
void DepthBuffer_ClearBuffer();
|
void DepthBuffer_ClearBuffer();
|
||||||
//DepthBuffer *DepthBuffer_FindBuffer( u32 address );
|
DepthBuffer *DepthBuffer_FindBuffer( u32 address );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user