I am not getting any errors from (FAILED) though.
This is my draw call. I have simplified it for debugging purposes, so in theory I should get a shot blue line rendered (if I am correct).
unsigned char* bytes=(unsigned char*)lockedRect.pBits;
// render the sprite queue
// display framerate data
strcpy(szBuffer2,"Frame Rate: ");
Is it something to do with how I am creating the texture?
// Sprite renders ok with this texture
MessageBox(0,"Can not find file","Resource not found",0);
// Sprite won't work with this texture
MessageBox(0,"Can not create blank video texture","Resource not found",0);
Any additional help would be awesome.
BTW, I am a newbie when it comes to dynamic textures and locking (never done it before).
Edited by lonewolff, 24 February 2014 - 03:14 PM.
Thanks Hodgman, compiles fine now. But, all I get is a black screen that is flickering my framerate counter (FPS is the last thing drawn in the render process).