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

Author Topic: An internal OpenGL call failed in Texture.cpp(98).  (Read 1550 times)

0 Members and 1 Guest are viewing this topic.

aljaz111

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
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?
« Last Edit: March 31, 2020, 12:39:09 am by aljaz111 »

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: An internal OpenGL call failed in Texture.cpp(98).
« Reply #1 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?
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

 

anything