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

Author Topic: Image load error reporting incorrect size  (Read 2043 times)

0 Members and 1 Guest are viewing this topic.

AClockWorkLemon

  • Newbie
  • *
  • Posts: 20
    • View Profile
Image load error reporting incorrect size
« on: February 13, 2012, 08:14:58 am »
Heya!

In an application i'm working on, on some hardware it is throwing an error when trying to load high resolution errors
Code: [Select]
Failed to create image, its internal size is too high (4096x4096)

I've already googled around, and know that this is to do with the graphics card is not powerful enough to load such a large image, however none of the images themselves are 4096x4096. The particular image i was testing on is one of the largest, and is ~3000x~2000.

I realise that this most likely has no effect on the actual error, however i was wondering if anyone would be able to explain the incorrect reporting of the image size.

If it is of any help, i am running PySFML 1.6, compiled from the latest Trunk revision in python 32 bit.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Image load error reporting incorrect size
« Reply #1 on: February 13, 2012, 08:18:25 am »
The card doesn't support non-power-of-two dimensions for textures, so SFML increased the size to 4096x4096.
Laurent Gomila - SFML developer

AClockWorkLemon

  • Newbie
  • *
  • Posts: 20
    • View Profile
Image load error reporting incorrect size
« Reply #2 on: February 13, 2012, 08:45:43 am »
Ah, i see. Thanks for the clarification.