summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-03-24 19:55:29 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-25 12:51:01 +0100
commitf254474d71fb6e11f721e57214940c289a387c8e (patch)
treedf4b6e8152529987e165b6906456b8c1c3878d60
parente7ad615cca2f4ae5383f1772b7c2845d59c4d68a (diff)
egl: Remove commented code
Fix also the statement about buffer size handling. Change-Id: I94e93fa4df7fee9b789ecca33d8722fbfc86ccc5 Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
-rw-r--r--src/platformsupport/eglconvenience/qeglconvenience.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/platformsupport/eglconvenience/qeglconvenience.cpp b/src/platformsupport/eglconvenience/qeglconvenience.cpp
index f014ae42e5..e6624fb9ff 100644
--- a/src/platformsupport/eglconvenience/qeglconvenience.cpp
+++ b/src/platformsupport/eglconvenience/qeglconvenience.cpp
@@ -82,16 +82,7 @@ QVector<EGLint> q_createConfigAttributesFromFormat(const QSurfaceFormat &format)
// put in the list before 32-bit configs. So, to make sure 16-bit is preffered over 32-bit,
// we must set the red/green/blue sizes to zero. This has an unfortunate consequence that
// if the application sets the red/green/blue size to 5/6/5 on the QSurfaceFormat,
- // they will probably get a 32-bit config, even when there's an RGB565 config available.
-
-// // Now normalize the values so -1 becomes 0
-// redSize = redSize > 0 ? redSize : 0;
-// greenSize = greenSize > 0 ? greenSize : 0;
-// blueSize = blueSize > 0 ? blueSize : 0;
-// alphaSize = alphaSize > 0 ? alphaSize : 0;
-// depthSize = depthSize > 0 ? depthSize : 0;
-// stencilSize = stencilSize > 0 ? stencilSize : 0;
-// sampleCount = sampleCount > 0 ? sampleCount : 0;
+ // they might still get a 32-bit config, even when there's an RGB565 config available.
QVector<EGLint> configAttributes;