Skip to content

Commit

Permalink
ogc: call GX_PixModeSync() after copying the EFB to a texture
Browse files Browse the repository at this point in the history
The documentation says that this is needed, though in practice I haven't
yet seen any issue with not using it.
  • Loading branch information
mardy authored and WinterMute committed Apr 22, 2024
1 parent 876486d commit 9ca06e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/render/ogc/SDL_render_ogc.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ static void save_efb_to_texture(SDL_Texture *texture)
GX_SetTexCopySrc(0, 0, texture->w, texture->h);
GX_SetTexCopyDst(texture->w, texture->h, ogc_tex->format, GX_FALSE);
GX_CopyTex(ogc_tex->texels, GX_TRUE);
GX_PixModeSync();
}

static void update_texture(SDL_Texture *texture, const SDL_Rect *rect,
Expand Down

0 comments on commit 9ca06e0

Please sign in to comment.