Fixed time.
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
#include "display/renderer.h"
|
||||
#include "ecs/ecssystem.h"
|
||||
|
||||
#include "display/mesh/quad.h"
|
||||
|
||||
display_t DISPLAY;
|
||||
|
||||
errorret_t displayInit(void) {
|
||||
@@ -55,7 +57,8 @@ errorret_t displayInit(void) {
|
||||
glEnableClientState(GL_VERTEX_ARRAY);
|
||||
#endif
|
||||
|
||||
// For now, we just return an OK error.
|
||||
quadInit();
|
||||
|
||||
errorOk();
|
||||
}
|
||||
|
||||
@@ -73,9 +76,9 @@ errorret_t displayUpdate(void) {
|
||||
}
|
||||
}
|
||||
|
||||
// Set viewport size.
|
||||
// TODO: move to framebuffer component
|
||||
int32_t windowWidth, windowHeight;
|
||||
// SDL_GetWindowSize(DISPLAY.window, &windowWidth, &windowHeight);
|
||||
SDL_GetWindowSize(DISPLAY.window, &windowWidth, &windowHeight);
|
||||
glViewport(0, 0, windowWidth, windowHeight);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user