Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-12-08 14:52:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-12-08 14:52:51 +0300
commitaf5784312a1bb8079d2e1edffdb6d8f607029f9e (patch)
treea3065c88f8e2caf9ae213250485c2ff616900632 /source
parentb787341b0971e9b1ad642ac2143d38a82f61c19f (diff)
Correct recent OpenGL cleanup
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/sculpt_paint/paint_cursor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_cursor.c b/source/blender/editors/sculpt_paint/paint_cursor.c
index a531a29f26a..f57255aff61 100644
--- a/source/blender/editors/sculpt_paint/paint_cursor.c
+++ b/source/blender/editors/sculpt_paint/paint_cursor.c
@@ -326,7 +326,7 @@ static int load_tex(Brush *br, ViewContext *vc, float zoom, bool col, bool prima
GLenum internalformat = col ? GL_RGBA8 : GL_ALPHA8;
if (!init || (target->old_col != col)) {
- glTexImage2D(GL_TEXTURE_2D, 0, format, size, size, 0, format, GL_UNSIGNED_BYTE, buffer);
+ glTexImage2D(GL_TEXTURE_2D, 0, internalformat, size, size, 0, format, GL_UNSIGNED_BYTE, buffer);
}
else {
glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, size, size, format, GL_UNSIGNED_BYTE, buffer);