Skip to content

Commit

Permalink
Update Hello_Triangle.c
Browse files Browse the repository at this point in the history
Cast `void *` pointer to correct type.
  • Loading branch information
sharabiania authored Sep 14, 2018
1 parent 66df74e commit 4d80da8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Chapter_2/Hello_Triangle/Hello_Triangle.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ int Init ( ESContext *esContext )
//
void Draw ( ESContext *esContext )
{
UserData *userData = esContext->userData;
UserData *userData = (UserData *) esContext->userData;
GLfloat vVertices[] = { 0.0f, 0.5f, 0.0f,
-0.5f, -0.5f, 0.0f,
0.5f, -0.5f, 0.0f
Expand All @@ -199,7 +199,7 @@ void Draw ( ESContext *esContext )

void Shutdown ( ESContext *esContext )
{
UserData *userData = esContext->userData;
UserData *userData = (UserData *) esContext->userData;

glDeleteProgram ( userData->programObject );
}
Expand Down

0 comments on commit 4d80da8

Please sign in to comment.