diff options
author | marha <marha@users.sourceforge.net> | 2011-03-08 08:31:07 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-03-08 08:31:07 +0000 |
commit | 62f8e1becaed544f600e167508fe76bc953d647e (patch) | |
tree | 175c3d80e16613dbe92a497836bf685d1324803d /mesalib/src/mesa/state_tracker/st_manager.c | |
parent | b1236880df6cbd13760a2adfaff9c22a89501d66 (diff) | |
parent | 8c74e7257ed453143c53086f884f6c6ff585379a (diff) | |
download | vcxsrv-62f8e1becaed544f600e167508fe76bc953d647e.tar.gz vcxsrv-62f8e1becaed544f600e167508fe76bc953d647e.tar.bz2 vcxsrv-62f8e1becaed544f600e167508fe76bc953d647e.zip |
svn merge ^/branches/released .
Diffstat (limited to 'mesalib/src/mesa/state_tracker/st_manager.c')
-rw-r--r-- | mesalib/src/mesa/state_tracker/st_manager.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesalib/src/mesa/state_tracker/st_manager.c b/mesalib/src/mesa/state_tracker/st_manager.c index 5684e9768..ed668d248 100644 --- a/mesalib/src/mesa/state_tracker/st_manager.c +++ b/mesalib/src/mesa/state_tracker/st_manager.c @@ -684,8 +684,9 @@ st_api_create_context(struct st_api *stapi, struct st_manager *smapi, if (attribs->major > 1 || attribs->minor > 0) {
_mesa_compute_version(st->ctx);
- if (st->ctx->VersionMajor < attribs->major ||
- st->ctx->VersionMajor < attribs->minor) {
+ /* is the actual version less than the requested version? */
+ if (st->ctx->VersionMajor * 10 + st->ctx->VersionMinor <
+ attribs->major * 10 + attribs->minor) {
st_destroy_context(st);
return NULL;
}
|