Skip to content

Commit

Permalink
set texture wrapping mode to clamp_to_edge
Browse files Browse the repository at this point in the history
  • Loading branch information
HellmannM authored and jeffamstutz committed Jan 15, 2025
1 parent 0d65eba commit 359d6c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/anari_viewer/windows/Viewport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Viewport::Viewport(anari::Device device, const char *name)
glBindTexture(GL_TEXTURE_2D, m_framebufferTexture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
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_RGBA8,
Expand Down

0 comments on commit 359d6c5

Please sign in to comment.