diff options
| author | raysan5 <[email protected]> | 2021-04-02 14:29:33 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-04-02 14:29:33 +0200 |
| commit | ccdf7ff335795a7828bf53faedb8f7d5be8c47cf (patch) | |
| tree | d8fc5d604c82658971fe97819889c0643c3359d5 /src/textures.c | |
| parent | 67dda62867c2b2c078abece05557eb3485a6bee7 (diff) | |
| download | raylib-ccdf7ff335795a7828bf53faedb8f7d5be8c47cf.tar.gz raylib-ccdf7ff335795a7828bf53faedb8f7d5be8c47cf.zip | |
REDESIGN: Move GenTexture*() functions to PBR example #721
Removed functions from rlgl module.
Diffstat (limited to 'src/textures.c')
| -rw-r--r-- | src/textures.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/textures.c b/src/textures.c index 9e7d1fb7..bb4a8ed2 100644 --- a/src/textures.c +++ b/src/textures.c @@ -2852,8 +2852,8 @@ RenderTexture2D LoadRenderTexture(int width, int height) target.depth.mipmaps = 1; // Attach color texture and depth renderbuffer/texture to FBO - rlFramebufferAttach(target.id, target.texture.id, RL_ATTACHMENT_COLOR_CHANNEL0, RL_ATTACHMENT_TEXTURE2D); - rlFramebufferAttach(target.id, target.depth.id, RL_ATTACHMENT_DEPTH, RL_ATTACHMENT_RENDERBUFFER); + rlFramebufferAttach(target.id, target.texture.id, RL_ATTACHMENT_COLOR_CHANNEL0, RL_ATTACHMENT_TEXTURE2D, 0); + rlFramebufferAttach(target.id, target.depth.id, RL_ATTACHMENT_DEPTH, RL_ATTACHMENT_RENDERBUFFER, 0); // Check if fbo is complete with attachments (valid) if (rlFramebufferComplete(target.id)) TRACELOG(LOG_INFO, "FBO: [ID %i] Framebuffer object created successfully", target.id); |
