aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornathansmithsmith <thenathansmithsmith@gmail.com>2023-12-23 17:17:19 -0700
committernathansmithsmith <thenathansmithsmith@gmail.com>2023-12-23 17:17:19 -0700
commit569a833ec9d18c5ad82d2334ec2c72ec01a5e460 (patch)
treed0eb1c47c3335726ea1aab18508a45ecae44983d
parentf439828dc068974ddc161cc3469ac489a93bbabc (diff)
Fixed the ifdef for drawModelWireFrame
-rw-r--r--src/util.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/util.c b/src/util.c
index 692ae4b..25b8d51 100644
--- a/src/util.c
+++ b/src/util.c
@@ -94,10 +94,7 @@ void drawModelWireframe(Model model, Vector3 position, Quaternion rotation, Colo
// DrawModelWires doesn't work on the version of opengl that web assembly uses.
// Instead I use this stupid peice of shit.
-#if defined(GRAPHICS_API_OPENGL_11) || defined(GRAPHICS_API_OPENGL_33)
- model.transform = QuaternionToMatrix(rotation);
- DrawModelWires(model, position, 1.0, color);
-#else
+#ifdef PLATFORM_WEB
for (int i = 0; i < model.meshCount; ++i) {
Mesh mesh = model.meshes[i];
@@ -121,5 +118,9 @@ void drawModelWireframe(Model model, Vector3 position, Quaternion rotation, Colo
DrawLine3D(triangle[2], triangle[0], color);
}
}
+#else
+ model.transform = QuaternionToMatrix(rotation);
+ DrawModelWires(model, position, 1.0, color);
#endif
}
+