SFML community forums

Help => General => Topic started by: Carlows on June 22, 2013, 05:05:26 pm

Title: Having problems on 64 bits
Post by: Carlows on June 22, 2013, 05:05:26 pm
I'm having some problems running SFML on 64 bits, the thing is, when I try to render text, the console shows this message:

An internal OpenGL call failed in Texture.cpp <327> : GL_INVALID_VALUE, a numeric argument is out of range

and It doesn't show any text...

Otherwise, the fps seems crazy, even with "Vertical Sync" enabled. I test exactly the same code on my desktop pc and It works perfectly.

These are my laptop's specifications:

------------------
System Information
------------------
Time of this report: 6/22/2013, 10:25:49
Machine name: CARLOS-PC
Operating System: Windows Vistaâ„¢ Home Premium (6.0, Build 6001) Service Pack 1 (6001.longhorn_rtm.080118-1840)
Language: Spanish (Regional Setting: Spanish)
System Manufacturer: Hewlett-Packard
System Model: HP Pavilion dv5 Notebook PC
BIOS: Default System BIOS
Processor: Intel(R) Core(TM)2 Duo CPU     T5800  @ 2.00GHz (2 CPUs), ~2.0GHz
Memory: 4026MB RAM
Page File: 2402MB used, 5853MB available
Windows Dir: C:\Windows
DirectX Version: DirectX 10
DX Setup Parameters: Not found
DxDiag Version: 6.00.6001.18000 64bit Unicode

----------------------------------------------------------------------------------------------------------------------------------

Apologies for my English, btw.
Title: Re: Having problems on 64 bits
Post by: The Hatchet on June 22, 2013, 05:33:51 pm
Compile and run this as your main.cpp and report back what number it gives you.  This will display what version of OpenGL your graphics chipset is currently supporting.  SFML requires your chipset to support at least 1.2 (mine shows 1.4).  Anything under that and certain GL functions and calls won't work correctly.

#include <SFML\Graphics.hpp>
#include <iostream>

int main(){
    sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");

    sf::ContextSettings settings = window.getSettings();
    std::cout << settings.majorVersion << "." << settings.minorVersion << std::endl;

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.display();
    }
    return 0;
}
Title: Re: Having problems on 64 bits
Post by: Carlows on June 22, 2013, 07:48:57 pm
Problem solved, wrong graphics configuration. Thanks anyway  :)