Skip to content

Commit bf6afcc

Browse files
committed
includes
1 parent 21e08a2 commit bf6afcc

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

OpenGL/src/Application.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ int main(void) {
8888
/* Make the window's context current */
8989
glfwMakeContextCurrent(window);
9090

91-
glfwSwapInterval(1);
91+
glfwSwapInterval(0);
9292

9393
if (glewInit() != GLEW_OK)
9494
std::cout << "Error!" << std::endl;
@@ -121,13 +121,13 @@ int main(void) {
121121
// gather all different shaders that are currently in use, and check if we need to
122122
// recompile the shader because the file was changed.
123123
// -------------------------------------------------------------------------------
124-
std::set<std::shared_ptr<Shader>> shaders;
124+
/* std::set<std::shared_ptr<Shader>> shaders;
125125
for (auto& gameobject : World::gameobjects) {
126126
if (gameobject->shader && !shaders.contains(gameobject->shader)) {
127127
shaders.insert(gameobject->shader);
128128
gameobject->shader->UpdateIfNeeded();
129129
}
130-
}
130+
}*/
131131

132132
World::UpdateObjects();
133133

OpenGL/src/VertexArray.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include "WeakMemoizeConstructor.h"
55
#include <vector>
66
#include <tuple>
7+
#include <array>
8+
#include <array>
79

810
class VertexBufferLayout;
911

OpenGL/src/game_objects/Background.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "Background.h"
2+
#include <array>
23

34
Background::Background(const std::string& name, int drawPriority, float x, float y)
45
: GameObject(name, drawPriority, x, y) {

0 commit comments

Comments
 (0)