Clamp framebuffer textures to edges

This commit is contained in:
2025-11-14 12:41:44 +00:00
parent 9fc36ec54c
commit a24ee66f51
6 changed files with 27 additions and 18 deletions
+2
View File
@@ -220,5 +220,7 @@ initializeTexture2D fbo attachpoint x y minfilt magfilt form = do
glTextureStorage2D to1 1 form xsize' ysize'
glTextureParameteri to1 GL_TEXTURE_MIN_FILTER (unsafeCoerce minfilt)
glTextureParameteri to1 GL_TEXTURE_MAG_FILTER (unsafeCoerce magfilt)
glTextureParameteri to1 GL_TEXTURE_WRAP_S (unsafeCoerce GL_CLAMP_TO_EDGE)
glTextureParameteri to1 GL_TEXTURE_WRAP_T (unsafeCoerce GL_CLAMP_TO_EDGE)
glNamedFramebufferTexture (_unFBO fbo) attachpoint to1 0
return to1