Skip to content

Commit

Permalink
Fixing OpenGL renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
vitor251093 committed Feb 4, 2025
1 parent 830270f commit 2f4f32f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/plugins/PluginKingdomHeartsDays.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,11 +504,11 @@ void PluginKingdomHeartsDays::gpu3DOpenGLClassic_VS_Z_updateVariables(u32 flags)
float aspectRatio = AspectRatio / (4.f / 3.f);

bool updated = false;
UPDATE_GPU_VAR(CompGpu3DLoc[flags][0], (int)(aspectRatio*1000), updated);
UPDATE_GPU_VAR(CompGpu3DLoc[flags][1], GameScene, updated);
UPDATE_GPU_VAR(CompGpu3DLoc[flags][2], UIScale, updated);
UPDATE_GPU_VAR(CompGpu3DLoc[flags][3], ShowMissionInfo ? 1 : 0, updated);
UPDATE_GPU_VAR(CompGpu3DLoc[flags][4], HideAllHUD ? 1 : 0, updated);
UPDATE_GPU_VAR(CompGpu3DLastValues[flags][0], (int)(aspectRatio*1000), updated);
UPDATE_GPU_VAR(CompGpu3DLastValues[flags][1], GameScene, updated);
UPDATE_GPU_VAR(CompGpu3DLastValues[flags][2], UIScale, updated);
UPDATE_GPU_VAR(CompGpu3DLastValues[flags][3], ShowMissionInfo ? 1 : 0, updated);
UPDATE_GPU_VAR(CompGpu3DLastValues[flags][4], HideAllHUD ? 1 : 0, updated);

Check warning on line 511 in src/plugins/PluginKingdomHeartsDays.cpp

View workflow job for this annotation

GitHub Actions / x86_64

array index 4 is past the end of the array (which contains 4 elements) [-Warray-bounds]

Check warning on line 511 in src/plugins/PluginKingdomHeartsDays.cpp

View workflow job for this annotation

GitHub Actions / x86_64

array index 4 is past the end of the array (which contains 4 elements) [-Warray-bounds]

Check warning on line 511 in src/plugins/PluginKingdomHeartsDays.cpp

View workflow job for this annotation

GitHub Actions / arm64

array index 4 is past the end of the array (which contains 4 elements) [-Warray-bounds]

Check warning on line 511 in src/plugins/PluginKingdomHeartsDays.cpp

View workflow job for this annotation

GitHub Actions / arm64

array index 4 is past the end of the array (which contains 4 elements) [-Warray-bounds]

if (updated) {
glUniform1f(CompGpu3DLoc[flags][0], aspectRatio);
Expand Down

0 comments on commit 2f4f32f

Please sign in to comment.