fixed a slowdown in the 3D window with multiple objects.

This commit is contained in:
2003-05-02 10:44:14 +00:00
parent 16b3cd809a
commit 75014f9f64
2 changed files with 2 additions and 2 deletions

View File

@@ -240,7 +240,7 @@ static void draw_icon_centered(float *pos, unsigned int *rect, int rectsize)
glRasterPos3fv(pos);
/* use bitmap to shift rasterpos in pixels */
glBitmap(1, 1, 0.0, 0.0, -hsize, -hsize, &dummy);
glBitmap(0, 0, 0.0, 0.0, -hsize, -hsize, &dummy);
glFinish(); /* for sun */
glDrawPixels(rectsize, rectsize, GL_RGBA, GL_UNSIGNED_BYTE, rect);

View File

@@ -201,7 +201,7 @@ void glaRasterPosSafe2f(float x, float y, float known_good_x, float known_good_y
/* Now shift the raster position to where we wanted
* it in the first place using the glBitmap trick.
*/
glBitmap(1, 1, 0, 0, x - known_good_x, y - known_good_y, &dummy);
glBitmap(0, 0, 0, 0, x - known_good_x, y - known_good_y, &dummy);
}
static int get_cached_work_texture(int *w_r, int *h_r)