{"action":"closed","issue":{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/31","labels_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/31/comments","events_url":"https://api.github.com/repos/OpenKinect/libfreenect2/issues/31/events","html_url":"https://github.com/OpenKinect/libfreenect2/issues/31","id":38616577,"number":31,"title":"OpenGLDepthPacketProcessor not working on Intel GPUs (Mac/OS X)","user":{"login":"dominiklessel","id":582281,"avatar_url":"https://avatars.githubusercontent.com/u/582281?v=3","gravatar_id":"","url":"https://api.github.com/users/dominiklessel","html_url":"https://github.com/dominiklessel","followers_url":"https://api.github.com/users/dominiklessel/followers","following_url":"https://api.github.com/users/dominiklessel/following{/other_user}","gists_url":"https://api.github.com/users/dominiklessel/gists{/gist_id}","starred_url":"https://api.github.com/users/dominiklessel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominiklessel/subscriptions","organizations_url":"https://api.github.com/users/dominiklessel/orgs","repos_url":"https://api.github.com/users/dominiklessel/repos","events_url":"https://api.github.com/users/dominiklessel/events{/privacy}","received_events_url":"https://api.github.com/users/dominiklessel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenKinect/libfreenect2/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":65,"created_at":"2014-07-24T10:39:10Z","updated_at":"2015-03-31T10:53:25Z","closed_at":"2015-03-31T10:53:25Z","body":"Hello there!\r\n\r\nI successfully compiled libfreenect2 on my MacBook Pro Retina (2013; QuadCore i7; Intel Iris GPU), but the IR/Depth Steam is just black. My first thought on this is a incompatible GPU … Does anybody have the same problem?\r\n\r\n![bildschirmfoto 2014-07-24 um 12 23 44](https://cloud.githubusercontent.com/assets/582281/3686863/0b57057c-131e-11e4-8222-ce1b228fec6a.png)\r\n\r\n\r\nSome debugging code I added in `SyncMultiFrameListener::onNewFrame(Frame::Type type, Frame *frame)` (frame_listener_impl.cpp:69) outputted the following information:\r\n\r\n```\r\nif ( type == 4 ) {\r\n  printf( \"Got depth frame!\\n\" );\r\n  printf( \"width: %i\\n\", int(frame->width) );\r\n  printf( \"height: %i\\n\", int(frame->height) );\r\n  printf( \"bytes per pixel: %i\\n\", int(frame->bytes_per_pixel) );\r\n  double sum;\r\n  for (int i = 0; i < frame->width*frame->height*frame->bytes_per_pixel; ++i)\r\n    sum += frame->data[i];\r\n  printf( \"sum: %f\\n\", sum );\r\n}\r\n```\r\n\r\n````\r\n\r\nGot depth frame!\r\nwidth: 512\r\nheight: 424\r\nbytes per pixel: 4\r\nsum: 0\r\n```\r\n\r\nAfter skimming through the code I ended up looking at the different DepthPacketProcessors and swapped `OpenGLDepthPacketProcessor` with `CpuDepthPacketProcessor` (libfreenect.cpp:76) and commented out `depth_packet_processor_(0)` (libfreenect.cpp:277) to make Protonect compile again.\r\n\r\nNow Protonect is outputting IR and Depth information, but turns my MacBook into a pocket heater:\r\n\r\n![bildschirmfoto 2014-07-24 um 12 25 08](https://cloud.githubusercontent.com/assets/582281/3686883/67d6380e-131e-11e4-9548-265c1e3a4dd4.png)"}}