Complete previous change (whoops)

This commit is contained in:
Chris Taylor 2012-03-31 12:38:14 +08:00
parent 8a250ad48a
commit a6502d4471
2 changed files with 3 additions and 7 deletions

View file

@ -4,6 +4,7 @@ D2X-Rebirth Changelog
--------
d2x-rebirth.xcodeproj/project.pbxproj, 2d/font.c: Make sure the ogl font code recognises the editor font is fixed width, fixing a crash; take the plunge and make D2X Rebirth compile with editor for Mac OpenGL build (won't work yet)
editor/med.c, editor/meddraw.c, editor/medmisc.c, include/editor/editor.h, main/render.c: Make all drawing in the editor single buffered, since the whole screen is double buffered. Fixes crash - but only shows a black screen and the menu for ogl
main/render.c: Complete previous change (whoops)
20120330
--------

View file

@ -2273,17 +2273,12 @@ int find_seg_side_face(short x,short y,int *seg,int *side,int *face,int *poly)
found_seg = -1;
if (render_3d_in_big_window) {
grs_canvas temp_canvas;
gr_init_sub_canvas(&temp_canvas,canv_offscreen,0,0,
LargeView.ev_canv->cv_bitmap.bm_w,LargeView.ev_canv->cv_bitmap.bm_h);
gr_set_current_canvas(&temp_canvas);
gr_set_current_canvas(LargeView.ev_canv);
render_frame(0, 0);
}
else {
gr_set_current_canvas(&VR_render_sub_buffer[0]); //render off-screen
gr_set_current_canvas(Canv_editor_game);
render_frame(0, 0);
}