-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maybe possibly Invalid Default Texture? #3959
Comments
Are you looking at the documentation? This function Line 97 in f100755
In the case of an invalid texture, the function will load the default. In the case of an invalid texture, the function will load the default. RayLib does not return error codes, does not use enums. It has its default behavior defined, how it behaves in the event of a failure. In this function, it loads a default, mostly empty texture. That's a constructor:
create a new texture with |
Thanks @colesnicov , so what I get from this is that the "default" texture does not refer to RLGL.State.defaultTextureId which is the actual default texture. |
I don't see it now, really. I've been here for a few days. And I haven't looked into the source yet... But I think
This means that it can easily be the default texture. It depends on the implementation. If the indexing starts with 0 or if it starts with 1 and 0 it means an error.. Someone more knowledgeable has to answer. |
As you can see here : #3962
Cite: It seems that the texture with ID 0 is the default texture that is uploaded in case of failure? But in the function you pointed to, the ID of the texture is set, in case it is faulty, to 1. Which probably won't be the default texture. **Could it be a mistake? ** Hopefully @rayson5 will be surprised. |
@MicroRJ @colesnicov Texture ID 1 is a default internal raylib texture, a 1x1 pixel white texture (
@MicroRJ Yes, it does. |
raylib/src/rshapes.c
Line 104 in f100755
Is this code meant to reset the texture to the default texture loaded by?
RLGL.State.defaultTextureId
or is the user expected to do so with rlGetTextureIdDefault()?
Thanks ray.
The text was updated successfully, but these errors were encountered: