http://bugs.freedesktop.org/show_bug.cgi?id=20129
--- Comment #3 from jsado_...@comcast.net 2009-02-21 16:42:13 PST --- I have done further investigation into this problem. I am able to prevent this graphical bug by commenting out the line OGL_DISABLE(TEXTURE_2D) in arch/ogl/gr.c line 436 if you are looking at d2x-rebirth 0.55.1. This is a macro, and here is it's definition in include/internals.h: #define OGL_DISABLE(a) OGL_DISABLE2(GL_ ## a,glDisable(GL_ ## a)) #define OGL_DISABLE2(a,f) {if (a ## _enabled!=0) {f;a ## _enabled=0;}} So, all it is doing is testing whether a particular feature is enabled or not, and if it is, then it is disabling it. To be certain, I created a file with just those three lines in it and ran it through the preprocessor with this command: gcc -E preproc.cpp The output line is: {if (GL_TEXTURE_2D_enabled!=0) {glDisable(GL_TEXTURE_2D);GL_TEXTURE_2D_enabled=0;}}; GL_TEXTURE_2D_enabled is defined in arch/ogl/ogl.c: int GL_TEXTURE_2D_enabled=-1; There is another way to "fix" this problem. It was discovered because an earlier version of the application did not exhibit this problem. The change that caused it was when one drawing call was removed. In the function render_gauges() in main/gauges.c, if the draw_player_ship() function is called before the draw_weapon_boxes() function, then the display is correct. Specifically I have added these two lines at line 2787 in the code: »·if (PlayerCfg.CockpitMode == CM_FULL_COCKPIT) »·»·draw_player_ship(cloak, old_cloak, SHIP_GAUGE_X, SHIP_GAUGE_Y); -- Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel