SFML community forums

Help => Graphics => Topic started by: aljaz111 on March 31, 2020, 12:30:45 am

Title: An internal OpenGL call failed in Texture.cpp(98).
Post by: aljaz111 on March 31, 2020, 12:30:45 am
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?
Title: Re: An internal OpenGL call failed in Texture.cpp(98).
Post by: Hapax on March 31, 2020, 06:35:32 pm
The first thing I would check is: do you have any SFML classes (especially resources) in global scope?