Skip to content
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

Fails to display depth textures. #2584

Closed
stolk opened this issue Feb 1, 2019 · 0 comments
Closed

Fails to display depth textures. #2584

stolk opened this issue Feb 1, 2019 · 0 comments

Comments

@stolk
Copy link

stolk commented Feb 1, 2019

If I try to see the contents of a depth texture, gapid gets confused about the size of the image, and fails to display it.

image data size (0x400000) did not match expected (0x100000) for dimensions 2048x2048x1

It seems that it thinks that GL_UNSIGNED_INT has the size of 1 byte. (The format of the texture is GL_DEPTH_COMPONENT, GL_UNSIGNED_INT)

image

pmuetschard added a commit to pmuetschard/gapid that referenced this issue Mar 5, 2019
Depth textures, and framebuffers backed by depth textures, that where
created with an unsized internal format require special handling when
read back from the GPU. For example, when blitting a FB, the source and
target formats will have to match and thus have to both be created with
a sized or unsized internal format.

Fixes google#2584
pmuetschard added a commit to pmuetschard/gapid that referenced this issue Mar 5, 2019
Depth textures, and framebuffers backed by depth textures, that where
created with an unsized internal format require special handling when
read back from the GPU. For example, when blitting a FB, the source and
target formats will have to match and thus have to both be created with
a sized or unsized internal format.

Fixes google#2584
pmuetschard added a commit that referenced this issue Mar 7, 2019
Depth textures, and framebuffers backed by depth textures, that where
created with an unsized internal format require special handling when
read back from the GPU. For example, when blitting a FB, the source and
target formats will have to match and thus have to both be created with
a sized or unsized internal format.

Fixes #2584
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant