Minor tweak to avoid false error logs
This commit is contained in:
parent
aefdb9f9cf
commit
d98779abef
@ -2281,8 +2281,11 @@ Shader LoadShader(const char *vsFileName, const char *fsFileName)
|
|||||||
{
|
{
|
||||||
Shader shader = { 0 };
|
Shader shader = { 0 };
|
||||||
|
|
||||||
char *vShaderStr = LoadFileText(vsFileName);
|
char *vShaderStr = NULL;
|
||||||
char *fShaderStr = LoadFileText(fsFileName);
|
char *fShaderStr = NULL;
|
||||||
|
|
||||||
|
if (vsFileName != NULL) vShaderStr = LoadFileText(vsFileName);
|
||||||
|
if (fsFileName != NULL) fShaderStr = LoadFileText(fsFileName);
|
||||||
|
|
||||||
shader = LoadShaderFromMemory(vShaderStr, fShaderStr);
|
shader = LoadShaderFromMemory(vShaderStr, fShaderStr);
|
||||||
|
|
||||||
|
@ -318,7 +318,7 @@ typedef struct Mesh {
|
|||||||
int vertexCount; // Number of vertices stored in arrays
|
int vertexCount; // Number of vertices stored in arrays
|
||||||
int triangleCount; // Number of triangles stored (indexed or not)
|
int triangleCount; // Number of triangles stored (indexed or not)
|
||||||
|
|
||||||
// Default vertex data
|
// Vertex attributes data
|
||||||
float *vertices; // Vertex position (XYZ - 3 components per vertex) (shader-location = 0)
|
float *vertices; // Vertex position (XYZ - 3 components per vertex) (shader-location = 0)
|
||||||
float *texcoords; // Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1)
|
float *texcoords; // Vertex texture coordinates (UV - 2 components per vertex) (shader-location = 1)
|
||||||
float *texcoords2; // Vertex second texture coordinates (useful for lightmaps) (shader-location = 5)
|
float *texcoords2; // Vertex second texture coordinates (useful for lightmaps) (shader-location = 5)
|
||||||
|
Loading…
Reference in New Issue
Block a user