mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 11:35:08 -04:00
PS2: Fix freezing and fix textures appearing in screen background
This commit is contained in:
parent
2a80bf833e
commit
6422ecc4f2
@ -119,9 +119,10 @@ static void InitDrawingEnv(void) {
|
|||||||
packet_free(packet);
|
packet_free(packet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Find a better way than just increasing this hardcoded size
|
||||||
static void InitDMABuffers(void) {
|
static void InitDMABuffers(void) {
|
||||||
packets[0] = packet_init(20000, PACKET_NORMAL);
|
packets[0] = packet_init(50000, PACKET_NORMAL);
|
||||||
packets[1] = packet_init(20000, PACKET_NORMAL);
|
packets[1] = packet_init(50000, PACKET_NORMAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void FlipContext(void) {
|
static void FlipContext(void) {
|
||||||
@ -142,7 +143,7 @@ void Gfx_Create(void) {
|
|||||||
InitBuffers();
|
InitBuffers();
|
||||||
InitDrawingEnv();
|
InitDrawingEnv();
|
||||||
InitDMABuffers();
|
InitDMABuffers();
|
||||||
tex_offset = graph_vram_size(64, 64, GS_PSM_32, GRAPH_ALIGN_PAGE);
|
tex_offset = graph_vram_allocate(256, 256, GS_PSM_32, GRAPH_ALIGN_BLOCK);
|
||||||
|
|
||||||
context = 1;
|
context = 1;
|
||||||
FlipContext();
|
FlipContext();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user