diff options
author | Jesse Barker <jesse.barker@linaro.org> | 2012-12-06 10:13:53 -0800 |
---|---|---|
committer | Jesse Barker <jesse.barker@linaro.org> | 2012-12-06 10:13:53 -0800 |
commit | 8eef3806a2aa39f2018d0bfbc6f34a1f8a5cda7e (patch) | |
tree | 659a276faaf7309d322f51aa6ce7eef1bb15f102 /src/gl-visual-config.h | |
parent | a9041c49c67f0abb48abd54bde24dbe4bd48fa29 (diff) | |
parent | d2dc1a8492bb6ca099cba3b5d891177facb278d8 (diff) | |
download | glmark2-8eef3806a2aa39f2018d0bfbc6f34a1f8a5cda7e.tar.gz |
Merge of lp:~glmark2-dev/glmark2/config-update.
Enhances GLVisualConfig to support the stencil attribute (defaults to prefer
no stencil buffer configs).
Updates EglConfig to query for all of table 3.1 in the EGL 1.4 spec.
Diffstat (limited to 'src/gl-visual-config.h')
-rw-r--r-- | src/gl-visual-config.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gl-visual-config.h b/src/gl-visual-config.h index 7eec2df..dc035cd 100644 --- a/src/gl-visual-config.h +++ b/src/gl-visual-config.h @@ -31,9 +31,9 @@ class GLVisualConfig { public: GLVisualConfig(): - red(1), green(1), blue(1), alpha(1), depth(1), buffer(1) {} - GLVisualConfig(int r, int g, int b, int a, int d, int buf): - red(r), green(g), blue(b), alpha(a), depth(d), buffer(buf) {} + red(1), green(1), blue(1), alpha(1), depth(1), stencil(0), buffer(1) {} + GLVisualConfig(int r, int g, int b, int a, int d, int s, int buf): + red(r), green(g), blue(b), alpha(a), depth(d), stencil(s), buffer(buf) {} GLVisualConfig(const std::string &s); /** @@ -55,6 +55,7 @@ public: int blue; int alpha; int depth; + int stencil; int buffer; private: |