X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=main.cpp;h=e972167424e11636c9e8e2ae5b08ff09f0bf8a9a;hp=0b7cb229dd745e09d405234bfe89b5f107eab389;hb=ceae87033f199ea0288399b5876fa4d1451eae3e;hpb=d0c631f46c6db417e013b1bc0edec24cb9c2824a diff --git a/main.cpp b/main.cpp index 0b7cb22..e972167 100644 --- a/main.cpp +++ b/main.cpp @@ -196,7 +196,7 @@ void init() { glViewport(0, 0, windowWidth, windowHeight); } -bool* keyStates = new bool[256]; +bool keyStates[256] = {false}; void keyboard(unsigned char key, int x, int y) { keyStates[key] = true;