compiles on robins computer :)

This commit is contained in:
Robin
2025-01-18 20:24:15 +01:00
parent db1b1a60ca
commit c65af95a66
9 changed files with 46 additions and 10 deletions

View File

@@ -6,6 +6,7 @@
#include "Shader.h"
#include "input/Widget.h"
#include "cuda_error.h"
// TODO: Delete

View File

@@ -83,6 +83,7 @@ void Quad::cuda_init(float* data) {
void Quad::render() {
check_cuda_errors(cudaGetLastError());
glBindTexture(GL_TEXTURE_2D, 0);
this->renderer->render();
glBindTexture(GL_TEXTURE_2D, this->tex);

View File

@@ -65,7 +65,7 @@ void Widget::tick(double fps) {
this->renderOnce = true;
}
sprintf(this->fps, "%.3f fps\n", fps);
ImGui::Text(this->fps);
ImGui::Text("%s", this->fps);
ImGui::End();
ImGui::Begin("Camera Controls");