Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - aljaz111

Pages: [1]
1
Graphics / An internal OpenGL call failed in Texture.cpp(98).
« 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?

Pages: [1]
anything