REVIEWED: rlLoadFramebuffer()

This commit is contained in:
Ray 2024-02-04 12:13:56 +01:00
parent 80580746e5
commit 615ee9d177
6 changed files with 6 additions and 6 deletions

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(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);

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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;

View File

@ -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)
{

View File

@ -3893,7 +3893,7 @@ RenderTexture2D LoadRenderTexture(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)
{