Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

QOpenGLPaintEngine vs. desktop OpenGL core profile

$
0
0
Hello, as the title suggest, my question is: will it be possible to use QPainter (backed by QOpenGLPaintEngine) with core profile? So far, I only managed a working QPainter with compatibility profile (gl version > 3.2). When switched to core profile, I got a black window and the following debug output: QOpenGLShader::compile(Vertex): Vertex shader failed to compile with the following errors: ERROR: error(#272) Implicit version number 110 not supported by GL3 forward compatible context ERROR: error(#273) 1 compilation errors.  No code generated #  followed by problematic shader source code Upon looking into the soruces, I found that the QOpenGLPaintEngine’s stock shaders are missing the #version directive, causing shader compilation to fail in core profile. I managed to “hack” the #version in, but without success. I’m afraid the problem is deeper than that. My concern is only because I read somewhere that compatibility profile is not available on some platforms (OS X). My setup is: Win7 / MSVC2010 and current Qt 5.1 sources from git, configured with: -opengl desktop -no-angle.

Viewing all articles
Browse latest Browse all 18427

Trending Articles