From a85d5966b658580f9d82254ef7f88d80b8312cb0 Mon Sep 17 00:00:00 2001 From: jsancho Date: Mon, 7 Sep 2009 17:26:44 +0000 Subject: [PATCH] --- gacela_GL.lisp | 2 ++ gacela_draw.lisp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gacela_GL.lisp b/gacela_GL.lisp index bce7813..84e38d6 100644 --- a/gacela_GL.lisp +++ b/gacela_GL.lisp @@ -61,6 +61,7 @@ ;;; Buffers, Pixel Drawing/Reading (defconstant GL_RGB #x1907) +(defconstant GL_RGBA #x1908) ;;; Hints (defconstant GL_PERSPECTIVE_CORRECTION_HINT #x0C50) @@ -79,6 +80,7 @@ ;;; OpenGL 1.2 (defconstant GL_BGR #x80E0) +(defconstant GL_BGRA #x80E1) ;;; OpenGL Functions (defcfun "void gacela_glBegin (int mode)" 0 diff --git a/gacela_draw.lisp b/gacela_draw.lisp index 553ec85..6689e67 100644 --- a/gacela_draw.lisp +++ b/gacela_draw.lisp @@ -76,7 +76,7 @@ (let ((width (surface-w image)) (height (surface-h image)) (texture (car (glGenTextures 1)))) (glBindTexture GL_TEXTURE_2D texture) - (glTexImage2D GL_TEXTURE_2D 0 3 width height 0 GL_RGB GL_UNSIGNED_BYTE (surface-pixels image)) + (glTexImage2D GL_TEXTURE_2D 0 3 width height 0 GL_RGBA GL_UNSIGNED_BYTE (surface-pixels image)) (glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MIN_FILTER min-filter) (glTexParameteri GL_TEXTURE_2D GL_TEXTURE_MAG_FILTER mag-filter) (SDL_FreeSurface image) -- 2.39.5