mirror of
https://github.com/MartinOpat/cuda-based-raytrace.git
synced 2025-06-07 02:13:10 +02:00
compiles on robins computer :)
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
#include "Shader.h"
|
||||
#include "input/Widget.h"
|
||||
#include "cuda_error.h"
|
||||
|
||||
|
||||
// TODO: Delete
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user