WARNING: struct RenderTexture2D: Removed depthTexture

Not required anymore, attachment type is queried when required
This commit is contained in:
raysan5 2020-09-17 13:44:03 +02:00
parent 6da3c1e7c3
commit fa2c114636
2 changed files with 19 additions and 9 deletions

View file

@ -247,9 +247,8 @@ typedef Texture2D TextureCubemap;
// RenderTexture2D type, for texture rendering
typedef struct RenderTexture2D {
unsigned int id; // OpenGL Framebuffer Object (FBO) id
Texture2D texture; // Color buffer attachment texture
Texture2D depth; // Depth buffer attachment texture
bool depthTexture; // Track if depth attachment is a texture or renderbuffer
Texture texture; // Color buffer attachment texture
Texture depth; // Depth buffer attachment texture
} RenderTexture2D;
// RenderTexture type, same as RenderTexture2D