osx: fix image reloading when window is resized
shader: fix reloading vertex attribute, was b0rk due to a recent optimization in the shader. closes #948