aboutsummaryrefslogtreecommitdiff
path: root/src/obj.h
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2022-10-31 10:35:24 -0500
committerjvech <jmvalenciae@unal.edu.co>2022-10-31 10:35:24 -0500
commit45584a1c39c699e2bc68638fe2402e590631e3a3 (patch)
tree0c0332d403c4ccefaefed38c57663fc267d555a5 /src/obj.h
parent1915909047d2a00c898106e4173c76b171368f38 (diff)
fix: stdin file reading bug fixed
Because is impossible to look for a mtl file it will discard it and prints a warning message
Diffstat (limited to 'src/obj.h')
-rw-r--r--src/obj.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/obj.h b/src/obj.h
index 44790a2..10df760 100644
--- a/src/obj.h
+++ b/src/obj.h
@@ -19,7 +19,7 @@
# ifndef __OBJ__
#define __OBJ__
-#define OBJ_LINE_MAX_SIZE 1024
+#define OBJ_LINE_MAX 1024
#define OBJ_MAX_WORD 512
typedef struct {
@@ -34,7 +34,7 @@ typedef struct {
} Texture;
typedef struct {
- char name[OBJ_LINE_MAX_SIZE];
+ char name[OBJ_LINE_MAX];
float ka[3], kd[3], ks[3];
unsigned int illum;
float ns;
Feel free to download, copy and edit any repo