Adapt new findings about Texture

This commit is contained in:
korenkonder
2024-04-13 17:42:27 +03:00
parent e9e3f6c249
commit dafb3e9db4
20 changed files with 225 additions and 199 deletions
+2 -2
View File
@@ -39,12 +39,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;
}