Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Error: failed to create texture its internal size is too high
Print
Pages: [
1
]
Author
Topic: Error: failed to create texture its internal size is too high (Read 4991 times)
0 Members and 2 Guests are viewing this topic.
toast9
Newbie
Posts: 8
Error: failed to create texture its internal size is too high
«
on:
April 02, 2015, 04:23:03 pm »
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?
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11034
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?
Logged
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
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.
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11034
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.
Logged
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
Re: Error: failed to create texture its internal size is too high
«
Reply #4 on:
April 02, 2015, 10:20:34 pm »
Quote from: toast9 on April 02, 2015, 04:30:44 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
»
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11034
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.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Error: failed to create texture its internal size is too high
anything