Fix crappy gpu oc code

I would be lying if i didnt say that I looked at and added in some of morfic's code, so thanks for that
Signed-off-by: Shane Wesiak <jdkoreclipse@gmail.com>