REVIEWED: UnloadRenderTexture()
, additional check
This commit is contained in:
parent
acf211a5fa
commit
97c4333803
1 changed files with 5 additions and 2 deletions
|
@ -3793,8 +3793,11 @@ void UnloadRenderTexture(RenderTexture2D target)
|
||||||
{
|
{
|
||||||
if (target.id > 0)
|
if (target.id > 0)
|
||||||
{
|
{
|
||||||
// Color texture attached to FBO is deleted
|
if (target.texture.id > 0)
|
||||||
rlUnloadTexture(target.texture.id);
|
{
|
||||||
|
// Color texture attached to FBO is deleted
|
||||||
|
rlUnloadTexture(target.texture.id);
|
||||||
|
}
|
||||||
|
|
||||||
// NOTE: Depth texture/renderbuffer is automatically
|
// NOTE: Depth texture/renderbuffer is automatically
|
||||||
// queried and deleted before deleting framebuffer
|
// queried and deleted before deleting framebuffer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue