Minor fix in Window and OpenGL examples
This commit is contained in:
parent
7fc29c78f7
commit
7c9f9cc41c
2 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ int main()
|
|||
GLfloat ratio = static_cast<float>(window.getSize().x) / window.getSize().y;
|
||||
glFrustum(-ratio, ratio, -1.f, 1.f, 1.f, 500.f);
|
||||
|
||||
// Define a 3D cube (8 faces made of 2 triangles composed by 3 vertices)
|
||||
// Define a 3D cube (6 faces made of 2 triangles composed by 3 vertices)
|
||||
GLfloat cube[] =
|
||||
{
|
||||
// positions // colors (r, g, b, a)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue