Skip to content

Commit 9ca06e0

Browse files
mardyWinterMute
authored andcommitted
ogc: call GX_PixModeSync() after copying the EFB to a texture
The documentation says that this is needed, though in practice I haven't yet seen any issue with not using it.
1 parent 876486d commit 9ca06e0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/render/ogc/SDL_render_ogc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ static void save_efb_to_texture(SDL_Texture *texture)
149149
GX_SetTexCopySrc(0, 0, texture->w, texture->h);
150150
GX_SetTexCopyDst(texture->w, texture->h, ogc_tex->format, GX_FALSE);
151151
GX_CopyTex(ogc_tex->texels, GX_TRUE);
152+
GX_PixModeSync();
152153
}
153154

154155
static void update_texture(SDL_Texture *texture, const SDL_Rect *rect,

0 commit comments

Comments
 (0)