Watch
2
0
Fork
You've already forked raylib-cs
0

examples fixed

This commit is contained in:
JupiterRider 2024-12-06 22:33:59 +01:00
commit 8b641d4515
3 changed files with 4 additions and 4 deletions

View file

@ -216,9 +216,9 @@ public class SkyboxDemo
// STEP 1: Setup framebuffer // STEP 1: Setup framebuffer
//------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------
uint rbo = Rlgl.LoadTextureDepth(size, size, true); uint rbo = Rlgl.LoadTextureDepth(size, size, true);
cubemap.Id = Rlgl.LoadTextureCubemap(null, size, format); cubemap.Id = Rlgl.LoadTextureCubemap(null, size, format, 1);
uint fbo = Rlgl.LoadFramebuffer(size, size); uint fbo = Rlgl.LoadFramebuffer();
Rlgl.FramebufferAttach( Rlgl.FramebufferAttach(
fbo, fbo,
rbo, rbo,

View file

@ -160,7 +160,7 @@ public class HybridRender
RenderTexture2D target = new(); RenderTexture2D target = new();
// Load an empty framebuffer // Load an empty framebuffer
target.Id = Rlgl.LoadFramebuffer(width, height); target.Id = Rlgl.LoadFramebuffer();
if (target.Id > 0) if (target.Id > 0)
{ {

View file

@ -109,7 +109,7 @@ public class WriteDepth
RenderTexture2D target = new(); RenderTexture2D target = new();
// Load an empty framebuffer // Load an empty framebuffer
target.Id = Rlgl.LoadFramebuffer(width, height); target.Id = Rlgl.LoadFramebuffer();
if (target.Id > 0) if (target.Id > 0)
{ {