Mercurial > hg > Members > kono > Cerium
diff Renderer/Engine/viewerGL.cc @ 942:b2f7d2ad3804
FB mode is working again on Mac OS X.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 31 Jul 2010 18:37:10 +0900 |
parents | 660e9190c40c |
children | 208e0478eaac |
line wrap: on
line diff
--- a/Renderer/Engine/viewerGL.cc Sat Jul 31 17:50:38 2010 +0900 +++ b/Renderer/Engine/viewerGL.cc Sat Jul 31 18:37:10 2010 +0900 @@ -198,7 +198,10 @@ while (sg) { if (sg->flag_drawable) { - texture = sg->gl_tex; + if (!sg->texture_info.gl_tex) { + sg->texture_info.gl_tex = SDL_GL_LoadTexture(sg->texture_info.texture_image); + } + texture = sg->texture_info.gl_tex; glBindTexture(GL_TEXTURE_2D, texture); glEnable(GL_TEXTURE_2D);