diff options
| author | dec05eba <dec05eba@protonmail.com> | 2025-12-26 22:32:51 +0100 |
|---|---|---|
| committer | dec05eba <dec05eba@protonmail.com> | 2025-12-26 22:32:51 +0100 |
| commit | 53dc0b6dd09735a83c9b843f8905cb0f20b1f148 (patch) | |
| tree | 26c8fafe468480dfd0b047530e79ee4e6929d68b /src/utils.c | |
| parent | c7cf99eac6056cb787940eeceb7cd3b1d621f22b (diff) | |
Regression fix: hevc_10bit broken
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c index be6c300..911fcf4 100644 --- a/src/utils.c +++ b/src/utils.c @@ -631,7 +631,9 @@ unsigned int gl_create_texture(gsr_egl *egl, int width, int height, int internal unsigned int texture_id = 0; egl->glGenTextures(1, &texture_id); egl->glBindTexture(GL_TEXTURE_2D, texture_id); - egl->glTexImage2D(GL_TEXTURE_2D, 0, internal_format, width, height, 0, format, GL_UNSIGNED_BYTE, NULL); + //egl->glTexImage2D(GL_TEXTURE_2D, 0, internal_format, width, height, 0, format, GL_UNSIGNED_BYTE, NULL); + // Needed for hevc_10bit for nvenc (cuGraphicsGLRegisterImage) + egl->glTexStorage2D(GL_TEXTURE_2D, 1, internal_format, width, height); egl->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, filter); egl->glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, filter); |
