mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 08:49:37 +00:00
Adds an OpenGL version shout out.
This commit is contained in:
parent
e0751af56d
commit
40bfde41cb
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include "OpenGL.hpp"
|
#include "OpenGL.hpp"
|
||||||
#include "Primitives/Rectangle.hpp"
|
#include "Primitives/Rectangle.hpp"
|
||||||
|
#include "../Log.hpp"
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
@ -78,6 +79,9 @@ ScanTarget::ScanTarget(GLuint target_framebuffer, float output_gamma) :
|
|||||||
unprocessed_line_texture_(LineBufferWidth, LineBufferHeight, UnprocessedLineBufferTextureUnit, GL_NEAREST, false),
|
unprocessed_line_texture_(LineBufferWidth, LineBufferHeight, UnprocessedLineBufferTextureUnit, GL_NEAREST, false),
|
||||||
full_display_rectangle_(-1.0f, -1.0f, 2.0f, 2.0f) {
|
full_display_rectangle_(-1.0f, -1.0f, 2.0f, 2.0f) {
|
||||||
|
|
||||||
|
// Note the OpenGL version.
|
||||||
|
LOG("Constructing scan target with OpenGL " << glGetString(GL_VERSION) << "; shading language version " << glGetString(GL_SHADING_LANGUAGE_VERSION));
|
||||||
|
|
||||||
// Ensure proper initialisation of the two atomic pointer sets.
|
// Ensure proper initialisation of the two atomic pointer sets.
|
||||||
read_pointers_.store(write_pointers_);
|
read_pointers_.store(write_pointers_);
|
||||||
submit_pointers_.store(write_pointers_);
|
submit_pointers_.store(write_pointers_);
|
||||||
|
Loading…
Reference in New Issue
Block a user