From 86fc74770be359da2c57a7d5d3724e00f758b5d9 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Wed, 1 Jul 2015 16:17:51 +0200 Subject: [PATCH] Fixing issues that occurred with newer nVidia drivers and ABuffer rendering --- ext/ghoul | 2 +- src/abuffer/abuffersinglelinked.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/ghoul b/ext/ghoul index 3a095f1ce6..a5111530a3 160000 --- a/ext/ghoul +++ b/ext/ghoul @@ -1 +1 @@ -Subproject commit 3a095f1ce633e52b94877bde67e77775262e3dbd +Subproject commit a5111530a3e211a45db3f2f8de1ae6c34caeecbf diff --git a/src/abuffer/abuffersinglelinked.cpp b/src/abuffer/abuffersinglelinked.cpp index 834f54ad07..35305bbced 100644 --- a/src/abuffer/abuffersinglelinked.cpp +++ b/src/abuffer/abuffersinglelinked.cpp @@ -89,6 +89,9 @@ bool ABufferSingleLinked::reinitializeInternal() { glBindTexture(GL_TEXTURE_2D, _anchorPointerTexture); glTexImage2D(GL_TEXTURE_2D, 0, GL_R32UI, _width, _height, 0, GL_RED_INTEGER, GL_UNSIGNED_INT, NULL); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); + glBindBuffer(GL_PIXEL_UNPACK_BUFFER, _anchorPointerTextureInitializer); glBufferData(GL_PIXEL_UNPACK_BUFFER, _totalPixels * sizeof(GLuint), NULL, GL_STATIC_DRAW);