Skip to content

Commit c4fc7f7

Browse files
authored
console: store the cache after clearing a framebuffer (#271)
This fixes a screen corruption issue when memory allocated for framebuffer was previously used.
1 parent 9992951 commit c4fc7f7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎libogc/console.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,7 @@ void CON_Init(void *framebuffer,int xstart,int ystart,int xres,int yres,int stri
10791079
for(int i=0; i<yres*stride/4; i++) {
10801080
ptr[i] = colorTable[0];
10811081
}
1082+
DCStoreRange(framebuffer, yres * stride);
10821083

10831084
// xstart and ystart are offsets within the provided framebuffer
10841085
// reduce xres and yres accordingly to prevent OOB writes

0 commit comments

Comments
 (0)