Inserted OpenGL Error checking
This commit is contained in:
@ -10,7 +10,6 @@
|
||||
#include "dawnopengl.hpp"
|
||||
#include "display/BackBufferRenderTarget.hpp"
|
||||
|
||||
|
||||
using namespace Dawn;
|
||||
|
||||
// Static declaration of the host, needed due to GLFW events being C-like
|
||||
@ -54,12 +53,14 @@ int32_t DawnHost::init(DawnGame *game) {
|
||||
glfwMakeContextCurrent(this->data->window);
|
||||
glfwSwapInterval(1);
|
||||
gladLoadGLLoader((GLADloadproc)glfwGetProcAddress);
|
||||
assertNoGLError();
|
||||
|
||||
// Override the defaults
|
||||
game->renderManager.backBuffer.setSize(
|
||||
DAWN_GLFW_WINDOW_WIDTH_DEFAULT,
|
||||
DAWN_GLFW_WINDOW_HEIGHT_DEFAULT
|
||||
);
|
||||
assertNoGLError();
|
||||
|
||||
// Default keybinds
|
||||
game->inputManager.bind(INPUT_BIND_ACCEPT, GLFW_KEY_ENTER);
|
||||
|
Reference in New Issue
Block a user