An internal OpenGL call failed in Texture.cpp(98).
Expression:
glFlush()
Error description:
GL_INVALID_OPERATION
The specified operation is not allowed in the current state.
This error happes when I send (Pokemon picture)into function, but if I do (sf::Sprite pokemon.sPokemon) this error goes away.
The class is down
class Pokemon
{public:
bool Owned;
int Index;
sf::Texture tPokemon;
sf::Sprite sPokemon;
string pokemonName;
int BattleStats[8];
string pokemonType[2];
Move moves[4];
public:
Pokemon();
~Pokemon();
void LoadPokemon(int ime);
void setPokemonPosition(int posX, int posY);
};
Any1 have any idea?