1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 17:16:44 +00:00

After further diagnosis, work around Qt6 GL crash.

This commit is contained in:
Thomas Harte
2025-11-29 21:57:01 -05:00
parent 73eb5d9a04
commit 16f031df4d
3 changed files with 20 additions and 8 deletions
+1 -3
View File
@@ -8,8 +8,6 @@
#include "TextureTarget.hpp"
#include <cstdlib>
#include <vector>
#include <stdexcept>
using namespace Outputs::Display::OpenGL;
@@ -93,7 +91,7 @@ void TextureTarget::bind_texture() const {
test_gl(glBindTexture, GL_TEXTURE_2D, texture_);
}
void TextureTarget::draw(float aspect_ratio, float colour_threshold) const {
void TextureTarget::draw(const float aspect_ratio, const float colour_threshold) const {
if(!pixel_shader_) {
const char *vertex_shader =
"#version 150\n"