We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
At https://docs.gl/es3/glTexImage2D, in example:
glBindTexture(GL_TEXTURE_2D, depth_texture); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT, fbo_width, fbo_height, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE, NULL); glBindTexture(GL_TEXTURE_2D, 0);
the internalformat parameter should be GL_DEPTH_COMPONENT24, otherwise INVALID OPERATION occurs. (Currently tested on an iOS device)
internalformat
GL_DEPTH_COMPONENT24
INVALID OPERATION
The text was updated successfully, but these errors were encountered:
No branches or pull requests
At https://docs.gl/es3/glTexImage2D, in example:
the
internalformat
parameter should beGL_DEPTH_COMPONENT24
, otherwiseINVALID OPERATION
occurs. (Currently tested on an iOS device)The text was updated successfully, but these errors were encountered: