{"action":"created","issue":{"url":"https://api.github.com/repos/ggez/ggez/issues/194","repository_url":"https://api.github.com/repos/ggez/ggez","labels_url":"https://api.github.com/repos/ggez/ggez/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/ggez/ggez/issues/194/comments","events_url":"https://api.github.com/repos/ggez/ggez/issues/194/events","html_url":"https://github.com/ggez/ggez/issues/194","id":266972371,"number":194,"title":"WindowError(SdlError(\"Could not create GL context\"))","user":{"login":"FuzzyLitchi","id":10896365,"avatar_url":"https://avatars3.githubusercontent.com/u/10896365?v=4","gravatar_id":"","url":"https://api.github.com/users/FuzzyLitchi","html_url":"https://github.com/FuzzyLitchi","followers_url":"https://api.github.com/users/FuzzyLitchi/followers","following_url":"https://api.github.com/users/FuzzyLitchi/following{/other_user}","gists_url":"https://api.github.com/users/FuzzyLitchi/gists{/gist_id}","starred_url":"https://api.github.com/users/FuzzyLitchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FuzzyLitchi/subscriptions","organizations_url":"https://api.github.com/users/FuzzyLitchi/orgs","repos_url":"https://api.github.com/users/FuzzyLitchi/repos","events_url":"https://api.github.com/users/FuzzyLitchi/events{/privacy}","received_events_url":"https://api.github.com/users/FuzzyLitchi/received_events","type":"User","site_admin":false},"labels":[{"id":507272302,"url":"https://api.github.com/repos/ggez/ggez/labels/[DOCS]","name":"[DOCS]","color":"fef2c0","default":false},{"id":319009112,"url":"https://api.github.com/repos/ggez/ggez/labels/bug","name":"bug","color":"fc2929","default":true},{"id":771353904,"url":"https://api.github.com/repos/ggez/ggez/labels/driver%20bug","name":"driver bug","color":"E0B0FF","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":39,"created_at":"2017-10-19T20:09:17Z","updated_at":"2018-02-14T23:09:19Z","closed_at":null,"author_association":"NONE","body":"I compiled this code (the example from the website),\r\n```rust\r\nextern crate ggez;\r\nuse ggez::conf;\r\nuse ggez::event;\r\nuse ggez::{GameResult, Context};\r\nuse ggez::graphics;\r\nuse ggez::graphics::{Color, DrawMode, Point};\r\nuse std::time::Duration;\r\n\r\nstruct MainState {\r\n    pos_x: f32,\r\n}\r\n\r\nimpl MainState {\r\n    fn new(ctx: &mut Context) -> GameResult<MainState> {\r\n        let s = MainState { pos_x: 0.0 };\r\n        Ok(s)\r\n    }\r\n}\r\n\r\nimpl event::EventHandler for MainState {\r\n    fn update(&mut self, _ctx: &mut Context, _dt: Duration) -> GameResult<()> {\r\n        self.pos_x = self.pos_x % 800.0 + 1.0;\r\n        Ok(())\r\n    }\r\n\r\n    fn draw(&mut self, ctx: &mut Context) -> GameResult<()> {\r\n        graphics::clear(ctx);\r\n        graphics::circle(ctx, DrawMode::Fill, Point { x: self.pos_x, y: 380.0 }, 100.0, 32)?;\r\n        graphics::present(ctx);\r\n        Ok(())\r\n    }\r\n}\r\n\r\npub fn main() {\r\n    let c = conf::Conf::new();\r\n    let ctx = &mut Context::load_from_conf(\"super_simple\", \"ggez\", c).unwrap();\r\n    let state = &mut MainState::new(ctx).unwrap();\r\n    event::run(ctx, state).unwrap();\r\n}\r\n```\r\nand it compiles fine, but when I try to run it, I get the following error:\r\n```\r\nthread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: WindowError(SdlError(\"Could not create GL context\"))', /checkout/src/libcore/result.rs:906:4\r\nnote: Run with `RUST_BACKTRACE=1` for a backtrace.\r\n```\r\n\r\nI have tried a bunch of different examples and nothing seems to run. This seems to be related to #143 but I'm running on a pretty new machine, specs bellow.\r\n\r\n```\r\nOS: Arch Linux \r\nKernel: x86_64 Linux 4.13.7-1-ARCH\r\nWM: i3\r\nCPU: Intel Core i5-7200U @ 4x 3.1GHz [40.0°C]\r\nGPU: Mesa DRI Intel(R) HD Graphics 620 (Kaby Lake GT2) \r\nRAM: 2119MiB / 7856MiB\r\n```"},"comment":{"url":"https://api.github.com/repos/ggez/ggez/issues/comments/365775706","html_url":"https://github.com/ggez/ggez/issues/194#issuecomment-365775706","issue_url":"https://api.github.com/repos/ggez/ggez/issues/194","id":365775706,"user":{"login":"est31","id":8872119,"avatar_url":"https://avatars2.githubusercontent.com/u/8872119?v=4","gravatar_id":"","url":"https://api.github.com/users/est31","html_url":"https://github.com/est31","followers_url":"https://api.github.com/users/est31/followers","following_url":"https://api.github.com/users/est31/following{/other_user}","gists_url":"https://api.github.com/users/est31/gists{/gist_id}","starred_url":"https://api.github.com/users/est31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/est31/subscriptions","organizations_url":"https://api.github.com/users/est31/orgs","repos_url":"https://api.github.com/users/est31/repos","events_url":"https://api.github.com/users/est31/events{/privacy}","received_events_url":"https://api.github.com/users/est31/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T23:09:19Z","updated_at":"2018-02-14T23:09:19Z","author_association":"NONE","body":"This specific bug has little to do with the provided OpenGL version but rather with sRGB support. That's it."}}
{"actor":{"display_login":"est31"}}