Fix a NULL pointer deference

Also, fixed an issue with the new conversion shader not compiling
properly on some video devices