Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/renderqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ C3D_RenderTarget* C3D_RenderTargetCreate(int width, int height, GPU_COLORBUF col

C3D_RenderTarget* C3D_RenderTargetCreateFromTex(C3D_Tex* tex, GPU_TEXFACE face, int level, C3D_DEPTHTYPE depthFmt)
{
if (!addrIsVRAM(tex->data)) return NULL; // Render targets must be in VRAM
if (!addrIsVRAM(C3Di_TexIs2D(tex) ? tex->data : tex->cube->data[face])) return NULL; // Render targets must be in VRAM
C3D_RenderTarget* target = C3Di_RenderTargetNew();
if (!target) return NULL;

Expand Down