Skip to content

Commit

Permalink
minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Aug 13, 2022
1 parent e0b487c commit 48c7f65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/rmodels.c
Original file line number Diff line number Diff line change
Expand Up @@ -1100,7 +1100,7 @@ void UploadMesh(Mesh *mesh, bool dynamic)
rlSetVertexAttribute(1, 2, RL_FLOAT, 0, 0, 0);
rlEnableVertexAttribute(1);

// WARNING: When setting default vertex attribute values, the values for each generic vertex attribute
// WARNING: When setting default vertex attribute values, the values for each generic vertex attribute
// is part of current state and it is maintained even if a different program object is used

if (mesh->normals != NULL)
Expand Down Expand Up @@ -1362,7 +1362,7 @@ void DrawMesh(Mesh mesh, Material material, Matrix transform)
if (mesh.indices != NULL) rlEnableVertexBufferElement(mesh.vboId[6]);
}

// WARNING: Disable vertex attribute color input if mesh can not provide that data (despite location being enabled in shader)
// WARNING: Disable vertex attribute color input if mesh can not provide that data (despite location being enabled in shader)
if (mesh.vboId[3] == 0) rlDisableVertexAttribute(material.shader.locs[SHADER_LOC_VERTEX_COLOR]);

int eyeCount = 1;
Expand Down Expand Up @@ -1583,7 +1583,7 @@ void DrawMeshInstanced(Mesh mesh, Material material, const Matrix *transforms, i
if (mesh.indices != NULL) rlEnableVertexBufferElement(mesh.vboId[6]);
}

// WARNING: Disable vertex attribute color input if mesh can not provide that data (despite location being enabled in shader)
// WARNING: Disable vertex attribute color input if mesh can not provide that data (despite location being enabled in shader)
if (mesh.vboId[3] == 0) rlDisableVertexAttribute(material.shader.locs[SHADER_LOC_VERTEX_COLOR]);

int eyeCount = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/rtextures.c
Original file line number Diff line number Diff line change
Expand Up @@ -3643,7 +3643,7 @@ void DrawTexturePoly(Texture2D texture, Vector2 center, Vector2 *points, Vector2

rlSetTexture(texture.id);

// Texturing is only supported on QUADs
// Texturing is only supported on RL_QUADS
rlBegin(RL_QUADS);

rlColor4ub(tint.r, tint.g, tint.b, tint.a);
Expand Down

0 comments on commit 48c7f65

Please sign in to comment.