git-svn-id: svn://db.shs.com.ru/libs@608 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -164,7 +164,7 @@ void createGLTexture(GLuint & tex, const QImage & image, const GLenum & format,
|
|||||||
glGenTextures(1, &tex);
|
glGenTextures(1, &tex);
|
||||||
}
|
}
|
||||||
glBindTexture(target, 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);
|
//const QImage & cim(im);
|
||||||
//glClearError();
|
//glClearError();
|
||||||
//glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
//glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
|
||||||
|
|||||||
@@ -803,7 +803,6 @@ QByteArray QGLView::saveCamera() {
|
|||||||
|
|
||||||
void QGLView::restoreCamera(const QByteArray &ba) {
|
void QGLView::restoreCamera(const QByteArray &ba) {
|
||||||
if (ba.isEmpty()) return;
|
if (ba.isEmpty()) return;
|
||||||
qDebug() << "restoreCamera" << ba.size();
|
|
||||||
ChunkStream cs(ba);
|
ChunkStream cs(ba);
|
||||||
QVector3D pos, aim, ang;
|
QVector3D pos, aim, ang;
|
||||||
while (!cs.atEnd()) {
|
while (!cs.atEnd()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user