Re: [AD] Potential color conversion bug |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
In any case, I still think that the problem still exists. Video bitmaps are created by AGL as 32-bit, regardless of the screen depth. I don't see why they can't be created to match the screen, even if, internally, Allegro GL uploads them as 32 bit textures.
Pete Elias Pschernig wrote:
On Mon, 2005-06-20 at 10:57 -0700, Robert Ohannessian wrote:Well, allegro_gl_set_allegro_mode() would certainly help.Yes, now it works as expected, and also the times changed: 32 -> 32 mem 4.290000 32 -> 32 vid 1.680000 Peter, can you also try adding allegro_gl_set_allegro_mode() after set_gfx_mode()? The docs here: http://allegrogl.sourceforge.net/docs/group__allegro.html#ga1 say: " You should encapsulate all Allegro code dealing with the screen in between allegro_gl_set_allegro_mode() and allegro_gl_unset_allegro_mode() " So I assume, the od dbehavior in the original example was expected, and there is no bug at all?
* Note * x_windowed_choose_visual: 8 formats. * Note * x_windowed_choose_visual: Mode 0 * Note * decode_visual: Decoding: Color Depth: 16 RGBA: 5.6.5.0 Accum: 16.16.16.16 DblBuf: 1 Zbuf: 16 Stereo: 0 Aux: 0 Stencil: 0 Shift: 11.5.0.0 Sample Buffers: 0 Samples: 0 Decoded bpp: 16 Score is : 640 * Note * x_windowed_choose_visual: Mode 1 * Note * decode_visual: Decoding: Color Depth: 16 RGBA: 5.6.5.0 Accum: 16.16.16.16 DblBuf: 1 Zbuf: 16 Stereo: 0 Aux: 0 Stencil: 0 Shift: 11.5.0.0 Sample Buffers: 0 Samples: 0 Decoded bpp: 16 Score is : 640 * Note * x_windowed_choose_visual: Mode 2 * Note * decode_visual: Decoding: Color Depth: 16 RGBA: 5.6.5.0 Accum: 16.16.16.16 DblBuf: 0 Zbuf: 16 Stereo: 0 Aux: 0 Stencil: 0 Shift: 11.5.0.0 Sample Buffers: 0 Samples: 0 Decoded bpp: 16 Score is : 384 * Note * x_windowed_choose_visual: Mode 3 * Note * decode_visual: Decoding: Color Depth: 16 RGBA: 5.6.5.0 Accum: 16.16.16.16 DblBuf: 1 Zbuf: 0 Stereo: 0 Aux: 0 Stencil: 0 Shift: 11.5.0.0 Sample Buffers: 0 Samples: 0 Decoded bpp: 16 Score is : 640 * Note * x_windowed_choose_visual: Mode 4 * Note * decode_visual: Decoding: Color Depth: 16 RGBA: 5.6.5.0 Accum: 16.16.16.16 DblBuf: 0 Zbuf: 0 Stereo: 0 Aux: 0 Stencil: 0 Shift: 11.5.0.0 Sample Buffers: 0 Samples: 0 Decoded bpp: 16 Score is : 384 * Note * x_windowed_choose_visual: Mode 5 * Note * decode_visual: Decoding: Color Depth: 16 RGBA: 5.6.5.0 Accum: 16.16.16.16 DblBuf: 0 Zbuf: 16 Stereo: 0 Aux: 0 Stencil: 0 Shift: 11.5.0.0 Sample Buffers: 0 Samples: 0 Decoded bpp: 16 Score is : 384 * Note * x_windowed_choose_visual: Mode 6 * Note * decode_visual: Decoding: Color Depth: 16 RGBA: 5.6.5.0 Accum: 16.16.16.16 DblBuf: 1 Zbuf: 0 Stereo: 0 Aux: 0 Stencil: 0 Shift: 11.5.0.0 Sample Buffers: 0 Samples: 0 Decoded bpp: 16 Score is : 640 * Note * x_windowed_choose_visual: Mode 7 * Note * decode_visual: Decoding: Color Depth: 16 RGBA: 5.6.5.0 Accum: 16.16.16.16 DblBuf: 0 Zbuf: 0 Stereo: 0 Aux: 0 Stencil: 0 Shift: 11.5.0.0 Sample Buffers: 0 Samples: 0 Decoded bpp: 16 Score is : 384 * Note * x_windowed_choose_visual: Best config is: 0 * Note * decode_visual: Decoding: Color Depth: 16 RGBA: 5.6.5.0 Accum: 16.16.16.16 DblBuf: 1 Zbuf: 16 Stereo: 0 Aux: 0 Stencil: 0 Shift: 11.5.0.0 Sample Buffers: 0 Samples: 0 Decoded bpp: 16 OpenGL Version: 1.4.0 NVIDIA 44.96 Vendor: NVIDIA Corporation Renderer: GeForce2 MX/AGP/SSE GLX Version: 1.3 GLU Version : 1.3 glXGetProcAddress Extension: Supported
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |