{"action":"created","issue":{"url":"https://api.github.com/repos/tomaka/glium/issues/1436","repository_url":"https://api.github.com/repos/tomaka/glium","labels_url":"https://api.github.com/repos/tomaka/glium/issues/1436/labels{/name}","comments_url":"https://api.github.com/repos/tomaka/glium/issues/1436/comments","events_url":"https://api.github.com/repos/tomaka/glium/issues/1436/events","html_url":"https://github.com/tomaka/glium/issues/1436","id":141897682,"number":1436,"title":"GLObject Trait on any Buffer Type ?","user":{"login":"Kerosene2000","id":3610253,"avatar_url":"https://avatars.githubusercontent.com/u/3610253?v=3","gravatar_id":"","url":"https://api.github.com/users/Kerosene2000","html_url":"https://github.com/Kerosene2000","followers_url":"https://api.github.com/users/Kerosene2000/followers","following_url":"https://api.github.com/users/Kerosene2000/following{/other_user}","gists_url":"https://api.github.com/users/Kerosene2000/gists{/gist_id}","starred_url":"https://api.github.com/users/Kerosene2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kerosene2000/subscriptions","organizations_url":"https://api.github.com/users/Kerosene2000/orgs","repos_url":"https://api.github.com/users/Kerosene2000/repos","events_url":"https://api.github.com/users/Kerosene2000/events{/privacy}","received_events_url":"https://api.github.com/users/Kerosene2000/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tomaka/glium/labels/E-easy","name":"E-easy","color":"009800"},{"url":"https://api.github.com/repos/tomaka/glium/labels/T-enhancement","name":"T-enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-18T15:26:22Z","updated_at":"2016-03-18T16:24:07Z","closed_at":null,"body":"Hello,\r\n\r\nI am working on a program which need to `get_id()` of a `GLObject` from any `glium::buffer` type, it's needed by the [clCreateFromGLBuffer function](https://www.khronos.org/registry/cl/sdk/1.2/docs/man/xhtml/clCreateFromGLBuffer.html) and I saw that [glium::IndexBuffer](https://tomaka.github.io/glium/src/glium/index/buffer.rs.html#212) will loose the `GLObject Trait` implementation therefore it will not be possible to get the `GLObject id` ?\r\n\r\nAnd why the `VertexBuffer` doesn't implement the `GLObject Trait` ?\r\nAm I supposed to implement it myself ? (this is not a problem, this will not be difficult, this is just a question :smile: )"},"comment":{"url":"https://api.github.com/repos/tomaka/glium/issues/comments/198435022","html_url":"https://github.com/tomaka/glium/issues/1436#issuecomment-198435022","issue_url":"https://api.github.com/repos/tomaka/glium/issues/1436","id":198435022,"user":{"login":"Kerosene2000","id":3610253,"avatar_url":"https://avatars.githubusercontent.com/u/3610253?v=3","gravatar_id":"","url":"https://api.github.com/users/Kerosene2000","html_url":"https://github.com/Kerosene2000","followers_url":"https://api.github.com/users/Kerosene2000/followers","following_url":"https://api.github.com/users/Kerosene2000/following{/other_user}","gists_url":"https://api.github.com/users/Kerosene2000/gists{/gist_id}","starred_url":"https://api.github.com/users/Kerosene2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kerosene2000/subscriptions","organizations_url":"https://api.github.com/users/Kerosene2000/orgs","repos_url":"https://api.github.com/users/Kerosene2000/repos","events_url":"https://api.github.com/users/Kerosene2000/events{/privacy}","received_events_url":"https://api.github.com/users/Kerosene2000/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T16:24:07Z","updated_at":"2016-03-18T16:24:07Z","body":"I will work on this, but is it normal that `png 0.3.1` doesn't compile ?\r\n```\r\n$> rustc --version // stable rustc version\r\nrustc 1.7.0 (a5d1e7a59 2016-02-29)\r\n```\r\n\r\npng multiple error messages like this: \r\n```\r\n.../png-0.3.1/src/decoder/mod.rs:372:42: 372:60 error: unresolved name `TRANSFORM_EXPAND` [E0425]\r\n.../png-0.3.1/src/decoder/mod.rs:372            GrayscaleAlpha if t.contains(::TRANSFORM_EXPAND) => 2 * 8,\r\n```"}}