Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Some fixes for the CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoticgd committed Jul 28, 2023
1 parent e2a7445 commit d82d3f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libra/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ typedef const char* RA_Result;

#define MAX(x, y) (((y) > (x)) ? (y) : (x))

#define RA_PI 3.14159265358979323846

RA_Result RA_file_read(u8** data_dest, u32* size_dest, const char* path);
RA_Result RA_file_write(const char* path, u8* data, u32 size);

Expand Down
2 changes: 1 addition & 1 deletion modeleditor/modeleditor.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static void draw_model(RenderModel* model, ViewParams* params) {
mat4x4_mul(view, view_yawed, trans);

mat4x4 proj;
mat4x4_perspective(proj, M_PI * 0.5f, view_size[X] / view_size[Y], 0.1f, 10000.0f);
mat4x4_perspective(proj, RA_PI * 0.5f, view_size[X] / view_size[Y], 0.1f, 10000.0f);

renderer_draw_model(model, view, proj);

Expand Down

0 comments on commit d82d3f8

Please sign in to comment.