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

This commit is contained in:
2018-04-22 18:17:42 +00:00
parent 11302ac363
commit 0f6c46f9c0

View File

@@ -134,7 +134,7 @@ GLuint GLTextureManagerBase::loadTexture(const QImage & im, bool ownership, bool
void GLTextureManagerBase::reloadTexture(GLuint tid, const QString & path) {
if (!currentGLTextureManager) return;
QString p = findFile(path);
if (p.isEmpty()) return;
if (p.isEmpty() || (tid == 0)) return;
QImage image(p);
createGLTexture(tid, image);
if (tid == 0) {
@@ -147,7 +147,7 @@ void GLTextureManagerBase::reloadTexture(GLuint tid, const QString & path) {
void GLTextureManagerBase::reloadTexture(GLuint tid, const QImage & im) {
if (!currentGLTextureManager) return;
if (im.isNull()) return;
if (im.isNull() || (tid == 0)) return;
QImage image(im);
createGLTexture(tid, image);
qDebug() << "[TextureManager] Reloaded" << tid;