examples fixed
This commit is contained in:
parent
8455bc7ea4
commit
8b641d4515
3 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue