mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-26 12:27:01 +00:00
REVIEWED: rlLoadFramebuffer()
This commit is contained in:
@@ -85,7 +85,7 @@ int main(void)
|
||||
|
||||
// Initialize the G-buffer
|
||||
GBuffer gBuffer = { 0 };
|
||||
gBuffer.framebuffer = rlLoadFramebuffer(screenWidth, screenHeight);
|
||||
gBuffer.framebuffer = rlLoadFramebuffer();
|
||||
|
||||
if (!gBuffer.framebuffer)
|
||||
{
|
||||
|
||||
@@ -158,7 +158,7 @@ RenderTexture2D LoadRenderTextureDepthTex(int width, int height)
|
||||
{
|
||||
RenderTexture2D target = { 0 };
|
||||
|
||||
target.id = rlLoadFramebuffer(width, height); // Load an empty framebuffer
|
||||
target.id = rlLoadFramebuffer(); // Load an empty framebuffer
|
||||
|
||||
if (target.id > 0)
|
||||
{
|
||||
|
||||
@@ -203,7 +203,7 @@ RenderTexture2D LoadShadowmapRenderTexture(int width, int height)
|
||||
{
|
||||
RenderTexture2D target = { 0 };
|
||||
|
||||
target.id = rlLoadFramebuffer(width, height); // Load an empty framebuffer
|
||||
target.id = rlLoadFramebuffer(); // Load an empty framebuffer
|
||||
target.texture.width = width;
|
||||
target.texture.height = height;
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@ RenderTexture2D LoadRenderTextureDepthTex(int width, int height)
|
||||
{
|
||||
RenderTexture2D target = { 0 };
|
||||
|
||||
target.id = rlLoadFramebuffer(width, height); // Load an empty framebuffer
|
||||
target.id = rlLoadFramebuffer(); // Load an empty framebuffer
|
||||
|
||||
if (target.id > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user