OpenGL: prefer GL_RGBA for water screen copy
as per recommended https://wikis.khronos.org/opengl/Common_Mistakes
This commit is contained in:
1 parent
938c95c80d
commit
3f68b0f8c1
1 file changed
+1
-1
@@ -3428,7 +3428,7 @@ void GL_CopyMainFramebufferTexture(void)
|
||||
{
|
||||
pglGenTextures(1, &sceneTextures[SCENE_TEX]);
|
||||
pglBindTexture(GL_TEXTURE_2D, sceneTextures[SCENE_TEX]);
|
||||
pglTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, screen_width, screen_height, 0, GL_RGB, GL_UNSIGNED_BYTE, NULL);
|
||||
pglTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, screen_width, screen_height, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
|
||||
pglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
||||
pglTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
|
||||
Clamp2D(GL_TEXTURE_WRAP_S);
|
||||
|
||||
Reference in new issue
Block a user