Added proper background variable support, fixed error in OpenGL3