VideoShader* VideoMaterial::createShader() const { DPTR_D(const VideoMaterial); VideoShader *shader = new VideoShader(); const VideoFormat fmt(d.frame.format()); shader->setVideoFormat(fmt); return shader; }
VideoShader* VideoMaterial::createShader() const { DPTR_D(const VideoMaterial); VideoShader *shader = new VideoShader(); const VideoFormat fmt(d.frame.format()); shader->setVideoFormat(fmt); //resize texture locations to avoid access format later return shader; }