View | Details | Raw Unified | Return to bug 1080578
Collapse All | Expand All

(-)a/src/gui/opengl/qopenglprogrambinarycache.cpp (+10 lines)
Lines 162-167 bool QOpenGLProgramBinaryCache::setProgramBinary(uint programId, uint blobFormat Link Here
162
    while (funcs->glGetError() != GL_NO_ERROR) { }
162
    while (funcs->glGetError() != GL_NO_ERROR) { }
163
    funcs->glProgramBinary(programId, blobFormat, p, blobSize);
163
    funcs->glProgramBinary(programId, blobFormat, p, blobSize);
164
    int err = funcs->glGetError();
164
    int err = funcs->glGetError();
165
166
    GLint value;
167
    value = 0;
168
    funcs->glGetProgramiv(program, GL_LINK_STATUS, &value);
169
    if (value != GL_TRUE) {
170
        qCDebug(DBG_SHADER_CACHE, "Program binary failed to load for program %u, size %d, format 0x%x, err = 0x%x",
171
                programId, blobSize, blobFormat, err);
172
        return false;
173
    }
174
165
    qCDebug(DBG_SHADER_CACHE, "Program binary set for program %u, size %d, format 0x%x, err = 0x%x",
175
    qCDebug(DBG_SHADER_CACHE, "Program binary set for program %u, size %d, format 0x%x, err = 0x%x",
166
            programId, blobSize, blobFormat, err);
176
            programId, blobSize, blobFormat, err);
167
    return err == 0;
177
    return err == 0;

Return to bug 1080578