Guest User

Untitled

a guest
May 20th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.19 KB | None | 0 0
  1. diff --git a/src/opengl/qgl_egl.cpp b/src/opengl/qgl_egl.cpp
  2. index 21047d7..db6be1c 100644
  3. --- a/src/opengl/qgl_egl.cpp
  4. +++ b/src/opengl/qgl_egl.cpp
  5. @@ -81,7 +81,7 @@ void qt_eglproperties_set_glformat(QEglProperties& eglProperties, const QGLForma
  6.      alphaSize = alphaSize > 0 ? alphaSize : 8;
  7.      depthSize = depthSize > 0 ? depthSize : 24;
  8.      stencilSize = stencilSize > 0 ? stencilSize : 8;
  9. -    sampleCount = sampleCount > 0 ? sampleCount : 4;
  10. +    sampleCount = sampleCount >= 0 ? sampleCount : 4;
  11.  #else
  12.      // QGLFormat uses a magic value of -1 to indicate "don't care", even when a buffer of that
  13.      // type has been requested. So we must check QGLFormat's booleans too if size is -1:
  14. diff --git a/src/opengl/qgl_symbian.cpp b/src/opengl/qgl_symbian.cpp
  15. index 7d343f6..b8b9172 100644
  16. --- a/src/opengl/qgl_symbian.cpp
  17. +++ b/src/opengl/qgl_symbian.cpp
  18. @@ -192,7 +192,7 @@ bool QGLContext::chooseContext(const QGLContext* shareContext) // almost same as
  19.                  d->glFormat.setSamples(4);
  20.              } else {
  21.                  d->glFormat.setSampleBuffers(0);
  22. -                d->glFormat.setSamples(1);
  23. +                d->glFormat.setSamples(0);
  24.              }
  25.          }
Add Comment
Please, Sign In to add comment