git-svn-id: svn://db.shs.com.ru/libs@607 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2019-10-08 12:26:48 +00:00
parent 1305a25427
commit 511a7c0514
3 changed files with 4 additions and 4 deletions

View File

@@ -164,7 +164,7 @@ void createGLTexture(GLuint & tex, const QImage & image, const GLenum & format,
glGenTextures(1, &tex);
}
glBindTexture(target, tex);
QImage im = image.mirrored(false, true);///__GLWidget__::convertToGLFormat(image);
QImage im = image.convertToFormat(QImage::Format_ARGB32).mirrored(false, true);///__GLWidget__::convertToGLFormat(image);
//const QImage & cim(im);
//glClearError();
//glPixelStorei(GL_UNPACK_ALIGNMENT, 1);

View File

@@ -604,8 +604,8 @@ void QGLView::checkCaps() {
void QGLView::reloadThisShaders() {
if (!shaders_supported) return;
loadShaders(shader_select, "selection", ":/shaders");
loadShaders(shader_halo, "selection_halo", ":/shaders");
loadShaders(shader_select, "selection", "://shaders");
loadShaders(shader_halo, "selection_halo", "://shaders");
//loadShaders(shader_rope, "rope", "://shaders");
}

View File

@@ -545,7 +545,7 @@ void RendererDeferredShading::reloadShaders() {
for (int i = 0; i < shaders.size(); ++i) {
QOpenGLShaderProgram * p(*(shaders[i].second));
if (!p) p = new QOpenGLShaderProgram(view.context());
loadShaders(p, shaders[i].first, ":/shaders");
loadShaders(p, shaders[i].first, "://shaders");
*(shaders[i].second) = p;
}
}