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

This commit is contained in:
2019-10-08 12:33:04 +00:00
parent 511a7c0514
commit c9640cf425
2 changed files with 1 additions and 2 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.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);

View File

@@ -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()) {