~cginternals/glraw/trunk

« back to all changes in this revision

Viewing changes to source/glraw-viewer/Canvas.cpp

  • Committer: Willy Scheibel
  • Date: 2021-01-24 17:23:52 UTC
  • Revision ID: git-v1:4c9930833e42404e74364b9b6eaf5afd98ac3096
Fix warnings

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    return m_context->format();
82
82
}
83
83
 
84
 
const QString Canvas::getString(const GLenum penum)
 
84
QString Canvas::getString(const GLenum penum)
85
85
{
86
86
    const QString result = reinterpret_cast<const char*>(m_gl->glGetString(penum));
87
87
    return result;
88
88
}
89
89
 
90
 
const GLint Canvas::getInteger(const GLenum penum)
 
90
GLint Canvas::getInteger(const GLenum penum)
91
91
{
92
92
    GLint result;
93
93
    m_gl->glGetIntegerv(penum, &result);