Neil Roberts
76843fc529
sdl2: Fix GL3 context creation
...
The check to verify whether we've got the right GL context was
checking that the GL version was less than 3 whenever the non-GL3
driver is used. However it looks like the driver is free to return a
GL3 context that is compatible with GL2 if GL2 is requested so this
was breaking the GL2 driver.
This also adds the necessary SDL attributes to request a forward
compatible core context like the GLX and EGL winsys's do. I haven't
actually tested this because it looks like SDL will only create a GL
context with GLX and I haven't got a recent enough X server to handle
the glXCreateContextAttribs request.
Reviewed-by: Robert Bragg <robert@linux.intel.com>
(cherry picked from commit d46acafa3ea7ba2e6c4ac7a45f00a132df1b2872)
2013-01-22 17:48:02 +00:00
..
2013-01-22 17:48:02 +00:00
2013-01-22 17:48:01 +00:00
2012-08-06 14:27:38 +01:00
2013-01-22 17:48:02 +00:00
2012-08-06 14:27:45 +01:00
2013-01-22 17:47:39 +00:00
2012-08-06 14:27:45 +01:00
2012-09-17 23:06:20 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:39 +01:00
2013-01-22 17:47:58 +00:00
2012-08-06 14:27:44 +01:00
2012-08-06 14:27:39 +01:00
2013-01-22 17:47:59 +00:00
2012-08-06 14:27:45 +01:00
2013-01-22 17:47:59 +00:00
2013-01-22 17:47:59 +00:00
2012-08-06 14:27:45 +01:00
2013-01-18 10:53:29 +00:00
2013-01-18 10:53:29 +00:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:47:59 +00:00
2013-01-22 17:47:59 +00:00
2013-01-22 17:47:39 +00:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2013-01-22 17:48:01 +00:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:47:59 +00:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:45 +01:00
2013-01-22 17:47:59 +00:00
2013-01-22 17:47:59 +00:00
2012-08-06 14:27:45 +01:00
2013-01-22 17:47:59 +00:00
2012-08-06 14:27:40 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:45 +01:00
2013-01-22 17:48:01 +00:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 18:51:33 +01:00
2013-01-22 17:47:24 +00:00
2013-01-22 17:48:01 +00:00
2013-01-22 17:48:01 +00:00
2013-01-22 17:47:39 +00:00
2012-08-06 14:27:40 +01:00
2012-08-06 18:51:33 +01:00
2012-09-03 15:51:45 +01:00
2012-09-03 15:47:56 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:39 +01:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:48:02 +00:00
2013-01-22 17:48:00 +00:00
2012-08-06 18:51:32 +01:00
2012-08-06 18:51:32 +01:00
2012-08-06 14:27:39 +01:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:47:39 +00:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:45 +01:00
2013-01-22 17:48:01 +00:00
2013-01-22 17:48:01 +00:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:45 +01:00
2013-01-18 10:53:29 +00:00
2013-01-22 17:48:01 +00:00
2013-01-22 17:48:02 +00:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:45 +01:00
2012-09-17 23:06:21 +01:00
2013-01-22 17:47:58 +00:00
2013-01-08 14:56:25 +01:00
2013-01-22 17:47:39 +00:00
2012-09-17 23:06:20 +01:00
2012-08-06 14:27:45 +01:00
2013-01-22 17:48:01 +00:00
2013-01-22 17:48:01 +00:00
2013-01-22 17:48:01 +00:00
2012-08-06 18:51:32 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:42 +01:00
2012-09-17 23:06:20 +01:00
2012-08-06 14:27:39 +01:00
2013-01-22 17:47:59 +00:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:45 +01:00
2013-01-22 17:48:01 +00:00
2012-08-06 14:27:40 +01:00
2013-01-22 17:48:01 +00:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:40 +01:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:47:39 +00:00
2013-01-18 17:28:25 +00:00
2013-01-22 17:48:01 +00:00
2012-08-06 14:27:43 +01:00
2013-01-18 17:28:25 +00:00
2013-01-18 17:28:25 +00:00
2012-08-06 14:27:45 +01:00
2012-08-06 18:51:32 +01:00
2012-09-17 11:47:04 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2013-01-22 17:48:02 +00:00
2012-08-06 14:27:45 +01:00
2012-08-06 18:51:32 +01:00
2012-08-06 14:27:42 +01:00
2013-01-18 10:53:29 +00:00
2012-08-06 18:51:32 +01:00
2012-08-06 18:51:32 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:38 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:41 +01:00
2012-08-06 14:27:39 +01:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:48:01 +00:00
2013-01-22 17:48:01 +00:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2013-01-22 17:48:01 +00:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:48:01 +00:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:39 +01:00
2013-01-22 17:47:59 +00:00
2013-01-18 10:53:29 +00:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:45 +01:00
2012-09-03 15:51:44 +01:00
2013-01-18 10:53:29 +00:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2013-01-22 17:48:01 +00:00
2012-09-03 15:51:45 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 18:51:32 +01:00
2012-08-06 18:51:32 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2013-01-18 10:53:29 +00:00
2013-01-22 17:48:01 +00:00
2013-01-22 17:48:01 +00:00
2012-08-06 14:27:41 +01:00
2012-08-06 14:27:41 +01:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:47:39 +00:00
2012-08-06 14:27:39 +01:00
2013-01-22 17:48:01 +00:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2013-01-22 17:47:58 +00:00
2013-01-18 10:53:29 +00:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2013-01-18 10:53:29 +00:00
2013-01-22 17:47:58 +00:00
2013-01-22 17:47:58 +00:00
2013-01-22 17:47:58 +00:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:48:00 +00:00
2013-01-22 17:47:58 +00:00
2013-01-22 17:47:58 +00:00
2013-01-22 17:48:00 +00:00
2013-01-22 17:47:39 +00:00
2012-08-06 14:27:44 +01:00
2013-01-22 17:48:00 +00:00
2013-01-22 17:47:58 +00:00
2013-01-22 17:48:00 +00:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:48:01 +00:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:48:02 +00:00
2012-08-14 18:55:42 +01:00
2012-08-14 18:55:42 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:45 +01:00
2012-09-03 15:48:05 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:39 +01:00
2012-08-06 14:27:45 +01:00
2012-08-06 14:27:45 +01:00
2013-01-22 17:47:39 +00:00
2013-01-18 10:53:29 +00:00
2013-01-22 17:47:39 +00:00
2013-01-22 17:47:39 +00:00
2013-01-18 10:53:29 +00:00
2012-08-06 14:27:39 +01:00
2013-01-18 10:53:29 +00:00
2013-01-22 17:48:01 +00:00
2013-01-22 17:47:58 +00:00
2012-08-06 14:27:42 +01:00
2013-01-22 17:47:58 +00:00
2013-01-22 17:48:01 +00:00
2013-01-18 17:28:25 +00:00