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

Author Topic: Error: failed to create texture its internal size is too high  (Read 4816 times)

0 Members and 2 Guests are viewing this topic.

toast9

  • Newbie
  • *
  • Posts: 8
    • View Profile
I'm trying to draw a tile map, but it says the textures are too big. I use loadFromFile to load in a PNG image to the texture. The images are only 64x64, why and where is the size being set to so high?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11002
    • View Profile
    • development blog
    • Email
Re: Error: failed to create texture its internal size is too high
« Reply #1 on: April 02, 2015, 04:24:36 pm »
What does getMaximumSize() return?
Is your driver uptodate?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

toast9

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Error: failed to create texture its internal size is too high
« Reply #2 on: April 02, 2015, 04:30:44 pm »
It says <8192x8192> which is way below the maximum.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11002
    • View Profile
    • development blog
    • Email
Re: Error: failed to create texture its internal size is too high
« Reply #3 on: April 02, 2015, 04:41:15 pm »
Well SFML internally doesn't do anything else than to request the maximum and test your texture size against it (see here).

So either your texture is corrupted, you load the wrong texture after all or SFML someone gets a wrong size value.

Run a debugger and see what's really going on. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: Error: failed to create texture its internal size is too high
« Reply #4 on: April 02, 2015, 10:20:34 pm »
It says <8192x8192> which is way below the maximum.
I'm currious why you'd say that. Depending on OpenGL version and graphics card I'd expect anywhere from 512x512 to 16384x16384 to be reasonable maximum texture sizes. Why do you consider 8192x8192 to be way below the maximum?
« Last Edit: April 02, 2015, 10:22:09 pm by Jesper Juhl »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11002
    • View Profile
    • development blog
    • Email
Re: Error: failed to create texture its internal size is too high
« Reply #5 on: April 03, 2015, 01:33:15 am »
It probably meant the 64x64 image is way below the maximum.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything