Proper OpenGLDevice Effect code