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

Author Topic: Issue with creating sf::Image  (Read 3150 times)

0 Members and 1 Guest are viewing this topic.

solgar

  • Newbie
  • *
  • Posts: 36
    • View Profile
Issue with creating sf::Image
« on: February 01, 2010, 08:24:36 pm »
Following code: http://ideone.com/IqTCnnpr produces following error:
Quote
Failed to create image, its internal size is too high (319x94)

First image is loaded and drawn perfectly. Loading second prints this error and is not drawn at all. This code http://ideone.com/wqYJVndB works perfectly. In second listing window is created before images. Issue occurs on Linux. On Windows there is no difference between those two code listings. My OS is Linux Mint 8 and SFML version is 1.5. Quite strange... is this SFML issue?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Issue with creating sf::Image
« Reply #1 on: February 01, 2010, 08:36:17 pm »
Quote
is this SFML issue?

Probably. Which version of SFML are you using? Have you tried the current SVN revision (future 1.6)?
Laurent Gomila - SFML developer

solgar

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Issue with creating sf::Image
« Reply #2 on: February 01, 2010, 08:39:13 pm »
Quote from: "solgar"
My OS is Linux Mint 8 and SFML version is 1.5


Tried only with 1.5 downloaded from site download section.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Issue with creating sf::Image
« Reply #3 on: February 02, 2010, 10:03:50 am »
Any message on the standard error output?

What about your graphics drivers, are they up-to-date?

You may also try the latest sources from SVN (you'll have to recompile SFML).
Laurent Gomila - SFML developer

solgar

  • Newbie
  • *
  • Posts: 36
    • View Profile
Issue with creating sf::Image
« Reply #4 on: February 02, 2010, 10:35:11 am »
Quote from: "Laurent"
Any message on the standard error output?
Only this one qouted above.

Quote from: "Laurent"
What about your graphics drivers, are they up-to-date?
Nope.

Quote from: "Laurent"
You may also try the latest sources from SVN (you'll have to recompile SFML).
But if you could try these code sample on your Linux I would be grateful :). I was competing in 2h game compo and I was using SFML for graphics and input. After 1 hour I tried to compile what i wrote and see the results but i got this error and it took me another hour to figure out what causes this error. Sooo i didnt submit my work :(. And I would really like to know if this was SFML fault or my OS or some other sinister force ;).

 

anything