src/gl/partrenderer.cpp

changeset 78
97c3ce5aa498
parent 77
028798a72591
child 86
4bec0525ef1b
--- a/src/gl/partrenderer.cpp	Mon Mar 09 23:42:26 2020 +0200
+++ b/src/gl/partrenderer.cpp	Wed Mar 11 17:19:28 2020 +0200
@@ -341,7 +341,7 @@
 	this->renderPreferences.style = gl::RenderStyle::PickScene;
 	this->makeCurrent();
 	this->renderScene();
-	std::array<GLbyte, 3> data;
+	std::array<GLubyte, 3> data;
 	this->checkForGLErrors();
 	glReadPixels(where.x(), this->height() - where.y(), 1, 1, GL_RGB, GL_UNSIGNED_BYTE, &data[0]);
 	this->checkForGLErrors();

mercurial