Skip to content

Commit

Permalink
Fix pixel format detection with SDL2
Browse files Browse the repository at this point in the history
  • Loading branch information
ccawley2011 committed Jul 31, 2024
1 parent 229d353 commit 4307c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SDL/render.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ int DisplayDev_Init(ARMul_State *state)
}

if (SDL_GetRendererInfo(renderer, &info) >= 0) {
for (i = 0; i < 1; i++) {
for (i = 0; i < info.num_texture_formats; i++) {
fmt = info.texture_formats[i];

/* Reject unsupported pixel formats */
Expand Down

0 comments on commit 4307c41

Please sign in to comment.