Przeglądaj źródła

Corrected issue with matrix order multiplication #1054

pull/1092/head
Ray 5 lat temu
rodzic
commit
98a7d35bab
1 zmienionych plików z 3 dodań i 3 usunięć
  1. +3
    -3
      src/core.c

+ 3
- 3
src/core.c Wyświetl plik

@ -1303,11 +1303,11 @@ void BeginMode2D(Camera2D camera)
rlLoadIdentity(); // Reset current matrix (MODELVIEW)
// Apply screen scaling if required
rlMultMatrixf(MatrixToFloat(screenScaling));
// Apply 2d camera transformation to modelview
rlMultMatrixf(MatrixToFloat(GetCameraMatrix2D(camera)));
// Apply screen scaling if required
rlMultMatrixf(MatrixToFloat(screenScaling));
}
// Ends 2D mode with custom camera

Ładowanie…
Anuluj
Zapisz