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

This commit is contained in:
2018-04-19 20:10:15 +00:00
parent 79d1654f07
commit 11302ac363
3 changed files with 35 additions and 2 deletions

View File

@@ -141,8 +141,8 @@ void createGLTexture(GLuint & tex, int width, int height, const GLenum & format,
void createGLTexture(GLuint & tex, const QImage & image, const GLenum & format, const GLenum & target) {
if (tex == 0) {
glGenTextures(1, &tex);
glBindTexture(target, tex);
}
glBindTexture(target, tex);
QImage im = image.mirrored(false, true);///__GLWidget__::convertToGLFormat(image);
//const QImage & cim(im);
//glClearError();