Fix #541
This commit is contained in:
parent
2c10bd3d24
commit
83f584b607
@ -333,9 +333,14 @@ namespace spades {
|
||||
SPLog("Mirror Framebuffer Created");
|
||||
} // (int)r_water >= 2
|
||||
|
||||
renderFramebufferWithoutDepth = dev->GenFramebuffer();
|
||||
dev->BindFramebuffer(IGLDevice::Framebuffer, renderFramebufferWithoutDepth);
|
||||
dev->FramebufferTexture2D(IGLDevice::Framebuffer, IGLDevice::ColorAttachment0,
|
||||
IGLDevice::Texture2D, renderColorTexture, 0);
|
||||
|
||||
// add render buffer as a registered buffer
|
||||
Buffer buf;
|
||||
buf.framebuffer = renderFramebuffer;
|
||||
buf.framebuffer = renderFramebufferWithoutDepth;
|
||||
buf.texture = renderColorTexture;
|
||||
buf.refCount = 0;
|
||||
buf.w = device->ScreenWidth();
|
||||
|
@ -82,6 +82,8 @@ namespace spades {
|
||||
IGLDevice::UInteger renderColorTexture;
|
||||
IGLDevice::UInteger renderDepthTexture;
|
||||
|
||||
IGLDevice::UInteger renderFramebufferWithoutDepth;
|
||||
|
||||
IGLDevice::Enum fbInternalFormat;
|
||||
|
||||
IGLDevice::UInteger mirrorFramebuffer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user