mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-03 12:31:15 +00:00
Stopped CPU suicide and app crashing for now
This commit is contained in:
parent
356e40c9f0
commit
ee3d5602d4
@ -246,8 +246,8 @@ Uint32 Citro3DRenderer::GetTextureId(IDirect3DRMTexture* iTexture)
|
|||||||
// This, for some reason, causes the app to close
|
// This, for some reason, causes the app to close
|
||||||
// instead of crashing the cpu, useful for
|
// instead of crashing the cpu, useful for
|
||||||
// debugging :)
|
// debugging :)
|
||||||
for(i = 0; i < 10000000; i++)
|
//for(i = 0; i < 1000000; i++)
|
||||||
printf("HI IM DAISY");
|
// SDL_LogError(LOG_CATEGORY_MINIWIN, "%s: HI IM DAISY", MINIWIN_PRETTY_FUNCTION);
|
||||||
|
|
||||||
C3D_TexDelete(tex.c3dTex);
|
C3D_TexDelete(tex.c3dTex);
|
||||||
|
|
||||||
@ -255,6 +255,8 @@ Uint32 Citro3DRenderer::GetTextureId(IDirect3DRMTexture* iTexture)
|
|||||||
if (!surf) {
|
if (!surf) {
|
||||||
return NO_TEXTURE_ID;
|
return NO_TEXTURE_ID;
|
||||||
}
|
}
|
||||||
|
// Apparently a crash may be caused due to large textures? Hopefully this fixes that.
|
||||||
|
surf = SDL_ScaleSurface(surf, (surf->w / 2), (surf->h / 2), SDL_SCALEMODE_LINEAR);
|
||||||
// TODO: C3D_TexGenerateMipmap or C3D_TexInit?
|
// TODO: C3D_TexGenerateMipmap or C3D_TexInit?
|
||||||
// glGenTextures(1, &tex.glTextureId);
|
// glGenTextures(1, &tex.glTextureId);
|
||||||
// FIXME: GPU_RGBA8 may be wrong
|
// FIXME: GPU_RGBA8 may be wrong
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user