If I set the blend mode to None it works perfectly. Also if I use a custom View it seems to work well.
The problem seems to be at this point:
switch (myBlendMode)
{
case Blend::Alpha :
GLCheck(glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE_MINUS_SRC_ALPHA));
break;
case Blend::Add :
GLCheck(glBlendFuncSeparate(GL_SRC_ALPHA, GL_ONE, GL_ONE, GL_ONE_MINUS_SRC_ALPHA));
break;
case Blend::Multiply :
GLCheck(glBlendFuncSeparate(GL_DST_COLOR, GL_ZERO, GL_ONE, GL_ONE_MINUS_SRC_ALPHA));
break;
default :
break;
}
But again if I use a custom view it works fine. Without a custom view only None seems to work.
I'm using revision 1139, OS is Windows 7, GPU is nvidia 800GTS.
EDIT: Okay, this is really weird, it works if I have sprites in the code somewhere (even if I don't draw them) but doesn't work if I edit an existing piece of code to match the change...
EDIT AGAIN: if I add:
sf::Image Image;
if(!Image.LoadFromFile("Ship.png"))
return 1;
to the code after I create the Rect, it works, I remove this piece of code and it breaks. I tried to see if putting any code would work (an empty for loop, a cout/cin statement, etc) but only using the Image does it somehow do something to make it work[/code]