Adapt new findings about Texture

This commit is contained in:
korenkonder
2024-04-13 18:06:05 +03:00
parent c5659c6cb3
commit e178aa896c
12 changed files with 181 additions and 117 deletions
+2 -2
View File
@@ -26,12 +26,12 @@ int32_t RenderTexture::Bind(int32_t index) {
void RenderTexture::Free() {
if (depth_texture) {
texture_free(depth_texture);
texture_release(depth_texture);
depth_texture = 0;
}
if (color_texture) {
texture_free(color_texture);
texture_release(color_texture);
color_texture = 0;
}