Browse Source

REVIEWED: `rlLoadFramebuffer()`

Ray 1 year ago
parent
commit
615ee9d177

+ 1 - 1
examples/models/models_skybox.c

@@ -194,7 +194,7 @@ static TextureCubemap GenTextureCubemap(Shader shader, Texture2D panorama, int s
     unsigned int rbo = rlLoadTextureDepth(size, size, true);
     unsigned int rbo = rlLoadTextureDepth(size, size, true);
     cubemap.id = rlLoadTextureCubemap(0, size, format);
     cubemap.id = rlLoadTextureCubemap(0, size, format);
 
 
-    unsigned int fbo = rlLoadFramebuffer(size, size);
+    unsigned int fbo = rlLoadFramebuffer();
     rlFramebufferAttach(fbo, rbo, RL_ATTACHMENT_DEPTH, RL_ATTACHMENT_RENDERBUFFER, 0);
     rlFramebufferAttach(fbo, rbo, RL_ATTACHMENT_DEPTH, RL_ATTACHMENT_RENDERBUFFER, 0);
     rlFramebufferAttach(fbo, cubemap.id, RL_ATTACHMENT_COLOR_CHANNEL0, RL_ATTACHMENT_CUBEMAP_POSITIVE_X, 0);
     rlFramebufferAttach(fbo, cubemap.id, RL_ATTACHMENT_COLOR_CHANNEL0, RL_ATTACHMENT_CUBEMAP_POSITIVE_X, 0);
 
 

+ 1 - 1
examples/shaders/shaders_deferred_render.c

@@ -85,7 +85,7 @@ int main(void)
 
 
     // Initialize the G-buffer
     // Initialize the G-buffer
     GBuffer gBuffer = { 0 };
     GBuffer gBuffer = { 0 };
-    gBuffer.framebuffer = rlLoadFramebuffer(screenWidth, screenHeight);
+    gBuffer.framebuffer = rlLoadFramebuffer();
 
 
     if (!gBuffer.framebuffer)
     if (!gBuffer.framebuffer)
     {
     {

+ 1 - 1
examples/shaders/shaders_hybrid_render.c

@@ -158,7 +158,7 @@ RenderTexture2D LoadRenderTextureDepthTex(int width, int height)
 {
 {
     RenderTexture2D target = { 0 };
     RenderTexture2D target = { 0 };
 
 
-    target.id = rlLoadFramebuffer(width, height);   // Load an empty framebuffer
+    target.id = rlLoadFramebuffer(); // Load an empty framebuffer
 
 
     if (target.id > 0)
     if (target.id > 0)
     {
     {

+ 1 - 1
examples/shaders/shaders_shadowmap.c

@@ -203,7 +203,7 @@ RenderTexture2D LoadShadowmapRenderTexture(int width, int height)
 {
 {
     RenderTexture2D target = { 0 };
     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.width = width;
     target.texture.height = height;
     target.texture.height = height;
 
 

+ 1 - 1
examples/shaders/shaders_write_depth.c

@@ -117,7 +117,7 @@ RenderTexture2D LoadRenderTextureDepthTex(int width, int height)
 {
 {
     RenderTexture2D target = { 0 };
     RenderTexture2D target = { 0 };
 
 
-    target.id = rlLoadFramebuffer(width, height);   // Load an empty framebuffer
+    target.id = rlLoadFramebuffer(); // Load an empty framebuffer
 
 
     if (target.id > 0)
     if (target.id > 0)
     {
     {

+ 1 - 1
src/rtextures.c

@@ -3893,7 +3893,7 @@ RenderTexture2D LoadRenderTexture(int width, int height)
 {
 {
     RenderTexture2D target = { 0 };
     RenderTexture2D target = { 0 };
 
 
-    target.id = rlLoadFramebuffer(width, height);   // Load an empty framebuffer
+    target.id = rlLoadFramebuffer(); // Load an empty framebuffer
 
 
     if (target.id > 0)
     if (target.id > 0)
     {
     {