Displaying 1 result from an estimated 1 matches for "gl_rgb".
Did you mean:
gl_rgba
2009 Mar 02
0
[PATCH 4 of 13] DisplayState interface change
...glDeleteTextures(1, &texture_ref);
@@ -90,27 +88,6 @@
glBindTexture(GL_TEXTURE_RECTANGLE_ARB, texture_ref);
glPixelStorei(GL_UNPACK_LSB_FIRST, 1);
switch (ds_get_bits_per_pixel(ds)) {
- case 8:
- if (ds->palette == NULL) {
- tex_format = GL_RGB;
- tex_type = GL_UNSIGNED_BYTE_3_3_2;
- } else {
- int i;
- GLushort paletter[256], paletteg[256], paletteb[256];
- for (i = 0; i < 256; i++) {
- uint8_t rgb = ds->palette[i] >> 16;
-...