Hi,
I’m using GLFW, GLEW and GLM to create a simple project.
I’m creating a window with OpenGL context and drawing a square on it.
I have the software AfterBurner from MSI, that uses RivaTuner Statistics.
I’m using this software to draw FPS, GPU infos… on 3D applications.
It works well with every 3D application I have, but it doesn’t for my simple project.
The overlay never “clears” itself each frames. It keeps overlapping old renders.
Here is my main loop :
while (isRunning) {
glClear(GL_COLOR_BUFFER_BIT);
//Draw
drawSimpleSquare();
glfwSwapBuffers(index);
glfwPollEvents();
if (glfwGetKey(index, GLFW_KEY_ESCAPE) != GLFW_PRESS
&& glfwWindowShouldClose(index) == 1) {
StopRunning();
}
}
And here is a screen of the problem :
[ATTACH=CONFIG]1353[/ATTACH]
Could somebody help me please ?
Btw, Does somebody know if there’s better libraries ?