Skip to content

Commit

Permalink
Fix compilation error on gcc (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
LazyJazz authored Jan 1, 2024
1 parent a64b0cf commit 7f7c214
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/GameX/renderer/renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Renderer {
return depth_render_pass_.get();
}

RenderPipeline *RenderPipeline() const {
class RenderPipeline *RenderPipeline() const {
return render_pipeline_.get();
}

Expand Down
4 changes: 2 additions & 2 deletions src/GameX/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace GameX::Base {

glm::mat3 Base::Rotate(const glm::vec3 &axis, float radians) {
glm::mat3 Rotate(const glm::vec3 &axis, float radians) {
float c = cos(radians);
float s = sin(radians);
float t = 1.0f - c;
Expand All @@ -14,7 +14,7 @@ glm::mat3 Base::Rotate(const glm::vec3 &axis, float radians) {
t * x * z + y * s, t * y * z - x * s, t * z * z + c);
}

glm::mat3 Base::Rotate(const glm::vec3 &rotation) {
glm::mat3 Rotate(const glm::vec3 &rotation) {
float theta = glm::length(rotation);
if (theta < 0.0001f) {
return glm::mat3(1.0f);
Expand Down

0 comments on commit 7f7c214

Please sign in to comment.