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

Author Topic: Graphic GL Error  (Read 5333 times)

0 Members and 1 Guest are viewing this topic.

Ptlomej

  • Newbie
  • *
  • Posts: 48
    • ICQ Messenger - 353167418
    • View Profile
    • Local
Graphic GL Error
« on: February 24, 2012, 06:07:23 pm »
I got a error with using Texture and the SFML 2 SVN version.

Here is the error.

Code: [Select]

An internal OpenGL call failed in Texture.cpp (153) : GL_INVALID_ENUM, an unacceptable value has been specified for an enumerated argument


I hope you can help me,
thank you!

many greeting,
Jason

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Graphic GL Error
« Reply #1 on: February 24, 2012, 06:23:34 pm »
Hi

What's your OS, graphics card, revision of SFML 2, ...? Are your graphics drivers up to date?

http://www.sfml-dev.org/forum/viewtopic.php?t=5559
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Graphic GL Error
« Reply #2 on: February 24, 2012, 06:24:14 pm »
Please provide a minimal and complete example.

See also: http://www.sfml-dev.org/forum/viewtopic.php?t=5559
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Ptlomej

  • Newbie
  • *
  • Posts: 48
    • ICQ Messenger - 353167418
    • View Profile
    • Local
Graphic GL Error
« Reply #3 on: February 24, 2012, 06:53:25 pm »
Windows XP
Graphic Card: Mobile Intel(R) 915GM/GMS,910GML Express Chipset Family
but i download it at 20.02.2012 11:18(Localtime Germany)
Where can i find the revision ?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Graphic GL Error
« Reply #4 on: February 24, 2012, 08:27:17 pm »
The date is ok, no need to find the exact revision.

Did you try to update your graphics drivers?
Laurent Gomila - SFML developer

Ptlomej

  • Newbie
  • *
  • Posts: 48
    • ICQ Messenger - 353167418
    • View Profile
    • Local
Graphic GL Error
« Reply #5 on: February 24, 2012, 08:57:22 pm »
Its a Laptop and the Driver is up to date from (2007) lol oô

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Graphic GL Error
« Reply #6 on: February 24, 2012, 09:10:06 pm »
It's weird, there are many users with a Intel 915GM chipset, and you're the first one to report such a problem.

Could you check the version of OpenGL that your driver supports?

Code: [Select]
#include <SFML/Window.hpp>
#include <SFML/OpenGL.hpp>
#include <iostream>

int main()
{
    sf::Context context;
    std::cout << glGetString(GL_VERSION) << std::endl;

    return 0;
}
Laurent Gomila - SFML developer

Ptlomej

  • Newbie
  • *
  • Posts: 48
    • ICQ Messenger - 353167418
    • View Profile
    • Local
Graphic GL Error
« Reply #7 on: February 25, 2012, 04:48:58 pm »
Your code return this:

Code: [Select]

Main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "__imp__glGetString@4" in Funktion "_main".


A Error at compiling.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Graphic GL Error
« Reply #8 on: February 25, 2012, 05:14:02 pm »
Yeah, sorry. You must link opengl32.lib.
Laurent Gomila - SFML developer

Ptlomej

  • Newbie
  • *
  • Posts: 48
    • ICQ Messenger - 353167418
    • View Profile
    • Local
Graphic GL Error
« Reply #9 on: February 25, 2012, 05:23:04 pm »
Where can i get the lib ?
an other Question i dont want to open new Thread :S
a sf::texture::update dont in 2.0 dont has support Transperent :O ?
16 support it ? i get black overlaps :S

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Graphic GL Error
« Reply #10 on: February 25, 2012, 06:18:59 pm »
Quote
Where can i get the lib ?

Your compiler already has it, just add "opengl32.lib" to the "Additional Inputs" of your linker settings.

Quote
an other Question i dont want to open new Thread

It's better to ask new questions in new threads, rather than mixing two unrelated things.

Quote
a sf::texture::update dont in 2.0 dont has support Transperent :O ?

Can you be more precise? Maybe show some code/screenshot?
Laurent Gomila - SFML developer

Ptlomej

  • Newbie
  • *
  • Posts: 48
    • ICQ Messenger - 353167418
    • View Profile
    • Local
Graphic GL Error
« Reply #11 on: February 25, 2012, 07:26:20 pm »
Okay the Output is in Console:
Code: [Select]

1.4.0 - Build 4.14.10.3992

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Graphic GL Error
« Reply #12 on: February 25, 2012, 11:23:44 pm »
Which revision of SFML 2 are you using?
Laurent Gomila - SFML developer

Ptlomej

  • Newbie
  • *
  • Posts: 48
    • ICQ Messenger - 353167418
    • View Profile
    • Local
Graphic GL Error
« Reply #13 on: February 26, 2012, 12:01:33 pm »
Where can i find the Revision ?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Graphic GL Error
« Reply #14 on: February 26, 2012, 12:13:53 pm »
How/when did you get it?
Laurent Gomila - SFML developer

 

anything