projects
/
opengl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle opengl internal format + format in image.cpp
[opengl.git]
/
main.cpp
diff --git
a/main.cpp
b/main.cpp
index 0b7cb229dd745e09d405234bfe89b5f107eab389..e972167424e11636c9e8e2ae5b08ff09f0bf8a9a 100644
(file)
--- a/
main.cpp
+++ b/
main.cpp
@@
-196,7
+196,7
@@
void init() {
glViewport(0, 0, windowWidth, windowHeight);
}
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;
void keyboard(unsigned char key, int x, int y) {
keyStates[key] = true;