fixed a slowdown in the 3D window with multiple objects.
This commit is contained in:
@@ -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);
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user