summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2012-07-17 11:22:32 -0700
committerJordan Justen <jordan.l.justen@intel.com>2012-07-24 11:59:19 -0700
commit881bb4ac7285c462079844072fc1d0b26e340b12 (patch)
treeffee2aa9e8299f9f46f46c6e6d35246db6b4ebe2 /src/mesa
parent01168df4d999f84105928d69fdd3eeed6baeeab4 (diff)
intel: move error on create context to proper path
The error was being set on the non-error path, rather than the error path. NOTE: This is a candidate for the 8.0 branch. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/intel/intel_screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_screen.c b/src/mesa/drivers/dri/intel/intel_screen.c
index 81953ce9334..e8a4ad13f4d 100644
--- a/src/mesa/drivers/dri/intel/intel_screen.c
+++ b/src/mesa/drivers/dri/intel/intel_screen.c
@@ -696,10 +696,10 @@ intelCreateContext(gl_api api,
if (ctx->VersionMajor > major_version
|| (ctx->VersionMajor == major_version
&& ctx->VersionMinor >= minor_version)) {
- *error = __DRI_CTX_ERROR_BAD_VERSION;
return true;
}
+ *error = __DRI_CTX_ERROR_BAD_VERSION;
intelDestroyContext(driContextPriv);
} else {
*error = __DRI_CTX_ERROR_NO_MEMORY;