I am unable to determine what is the cause of the below error:
“Failed to load the shader” from SDL_RenderCopy().
What i did was,
-
Create Texture,
vp->bmp = SDL_CreateTexture (renderer, SDL_PIXELFORMAT_IYUV, SDL_TEXTUREACCESS_STREAMING,1280, 720); -
Update Texture with SDL_UpdateYUVTexture for vp->bmp
-
SDL_RenderCopy to renderer from vp->bmp
-
SDL_RenderPresent -> renderer to window.
What could have gone wrong?