Fix high severity bug:
Vertex Buffer was deleted in model loading process
This commit is contained in:
@@ -20,13 +20,17 @@ EventHandler::EventHandler(GLFWwindow *window)
|
||||
|
||||
void EventHandler::handleEvents() {
|
||||
|
||||
for(int i = 0; i < CAMERA_MOUSE_ACTION_NUM_ITEMS; i++)
|
||||
cameraMouseActionRegister[i] = 0.0;
|
||||
|
||||
clearActionRegisters();
|
||||
glfwPollEvents();
|
||||
|
||||
}
|
||||
|
||||
void EventHandler::clearActionRegisters() {
|
||||
//std::fill_n(cameraActionRegister, CAMERA_ACTION_NUM_ITEMS, 0);
|
||||
std::fill_n(cameraMouseActionRegister, CAMERA_MOUSE_ACTION_NUM_ITEMS, 0.0);
|
||||
std::fill_n(windowActionRegister, WINDOW_ACTION_NUM_ITEMS, 0);
|
||||
}
|
||||
|
||||
void EventHandler::key_callback(GLFWwindow *window, int key, int scancode, int action, int mods) {
|
||||
// Silence warnings of unused variables.
|
||||
(void)window; (void)scancode; (void)mods;
|
||||
|
||||
Reference in New Issue
Block a user