diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-08-25 22:05:36 +0100 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-08-25 22:05:36 +0100 |
commit | 6d7ddcc5594d334f926aa2e0546ab5b57b9a1e3c (patch) | |
tree | 145d7bfae2c3c8014675964687ca80e44885f377 /retrace/glretrace.hpp | |
parent | bafc84295df205d0db53353734ec6d61e0f180c5 (diff) |
glretrace: Use the returned context version when checking for occlusion query.
Instead of using the requested context version.
This fixes occlusion query detection with all traces recorded on Windows,
as wglCreateContext doesn't provide way to specify context version and
can't be avoided.
Fixes https://github.com/apitrace/apitrace/issues/358#issuecomment-131519038
Diffstat (limited to 'retrace/glretrace.hpp')
-rw-r--r-- | retrace/glretrace.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/retrace/glretrace.hpp b/retrace/glretrace.hpp index b172f852..5cb4a889 100644 --- a/retrace/glretrace.hpp +++ b/retrace/glretrace.hpp @@ -59,7 +59,12 @@ struct Context { profile(void) const { return wsContext->profile; } - + + inline glprofile::Profile + actualProfile(void) const { + return wsContext->actualProfile; + } + inline bool hasExtension(const char *extension) const { return wsContext->hasExtension(extension); |