Fix struct packing

This commit is contained in:
MrLetsplay 2023-09-13 16:32:56 +02:00
parent 455b8f560a
commit bee6e14b08
Signed by: mr
SSH Key Fingerprint: SHA256:92jBH80vpXyaZHjaIl47pjRq+Yt7XGTArqQg1V7hSqg
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
build/
build.win/
.vscode/
.cache/

View File

@ -7,7 +7,7 @@
namespace kek {
#pragma pack(1)
#pragma pack(push, 1)
struct ShaderLight {
float color[3];
float pad;
@ -21,7 +21,7 @@ struct ShaderLight {
//float lightSpaceMatrix[16]; // mat4
float padding[2];
};
#pragma pack(0)
#pragma pack(pop)
// Lighting data for shader
struct LightingData {