From c9640cf425f6948dc551ef18088508b4b7798f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=8B=D1=87=D0=BA=D0=BE=D0=B2=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Tue, 8 Oct 2019 12:33:04 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@608 a8b55f48-bf90-11e4-a774-851b48703e85 --- qglview/gltypes.cpp | 2 +- qglview/qglview.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/qglview/gltypes.cpp b/qglview/gltypes.cpp index 10651af..6431dd6 100644 --- a/qglview/gltypes.cpp +++ b/qglview/gltypes.cpp @@ -164,7 +164,7 @@ void createGLTexture(GLuint & tex, const QImage & image, const GLenum & format, glGenTextures(1, &tex); } glBindTexture(target, tex); - QImage im = image.convertToFormat(QImage::Format_ARGB32).mirrored(false, true);///__GLWidget__::convertToGLFormat(image); + QImage im = image.mirrored(false, true).convertToFormat(QImage::Format_ARGB32, Qt::ColorOnly); //const QImage & cim(im); //glClearError(); //glPixelStorei(GL_UNPACK_ALIGNMENT, 1); diff --git a/qglview/qglview.cpp b/qglview/qglview.cpp index 0c384b5..57c9bd9 100644 --- a/qglview/qglview.cpp +++ b/qglview/qglview.cpp @@ -803,7 +803,6 @@ QByteArray QGLView::saveCamera() { void QGLView::restoreCamera(const QByteArray &ba) { if (ba.isEmpty()) return; - qDebug() << "restoreCamera" << ba.size(); ChunkStream cs(ba); QVector3D pos, aim, ang; while (!cs.atEnd()) {