Browse Source

REVIEWED: `rlLoadFramebuffer()`

pull/3780/head
Ray 10 months ago
parent
commit
615ee9d177
6 changed files with 6 additions and 6 deletions
  1. +1
    -1
      examples/models/models_skybox.c
  2. +1
    -1
      examples/shaders/shaders_deferred_render.c
  3. +1
    -1
      examples/shaders/shaders_hybrid_render.c
  4. +1
    -1
      examples/shaders/shaders_shadowmap.c
  5. +1
    -1
      examples/shaders/shaders_write_depth.c
  6. +1
    -1
      src/rtextures.c

+ 1
- 1
examples/models/models_skybox.c View File

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

+ 1
- 1
examples/shaders/shaders_deferred_render.c View File

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

+ 1
- 1
examples/shaders/shaders_hybrid_render.c View File

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

+ 1
- 1
examples/shaders/shaders_shadowmap.c View File

@ -203,7 +203,7 @@ RenderTexture2D LoadShadowmapRenderTexture(int width, int height)
{
RenderTexture2D target = { 0 };
target.id = rlLoadFramebuffer(n">width, height); // Load an empty framebuffer
target.id = rlLoadFramebuffer(); // Load an empty framebuffer
target.texture.width = width;
target.texture.height = height;

+ 1
- 1
examples/shaders/shaders_write_depth.c View File

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

+ 1
- 1
src/rtextures.c View File

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

Loading…
Cancel
Save