mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 12:12:25 +01:00
- fixed rendering on battle end screen
This commit is contained in:
parent
e014ecbd94
commit
68bfe9e455
@ -190,8 +190,8 @@ Renderer::Renderer() : BaseRenderer() {
|
||||
//list3dMenu=0;
|
||||
//list3dMenuValid=false;
|
||||
//customlist3dMenu=NULL;
|
||||
mm3d = NULL;
|
||||
custom_mm3d = NULL;
|
||||
this->mm3d = NULL;
|
||||
this->custom_mm3d = NULL;
|
||||
|
||||
this->program = NULL;
|
||||
|
||||
@ -554,6 +554,9 @@ void Renderer::reset2d() {
|
||||
void Renderer::reset3dMenu() {
|
||||
assertGl();
|
||||
glLightModeli(GL_LIGHT_MODEL_COLOR_CONTROL, GL_SINGLE_COLOR);
|
||||
|
||||
//printf("In [%s::%s Line: %d] this->custom_mm3d [%p] this->mm3d [%p]\n",__FILE__,__FUNCTION__,__LINE__,this->custom_mm3d,this->mm3d);
|
||||
|
||||
if(this->custom_mm3d != NULL) {
|
||||
render3dMenuSetup(this->custom_mm3d);
|
||||
//glCallList(*this->customlist3dMenu);
|
||||
@ -7148,6 +7151,8 @@ void Renderer::init3dListMenu(const MainMenu *mm) {
|
||||
}
|
||||
|
||||
this->mm3d = mm;
|
||||
//printf("In [%s::%s Line: %d] this->custom_mm3d [%p] this->mm3d [%p]\n",__FILE__,__FUNCTION__,__LINE__,this->custom_mm3d,this->mm3d);
|
||||
|
||||
/*
|
||||
assertGl();
|
||||
|
||||
|
@ -121,16 +121,18 @@ void BattleEnd::render() {
|
||||
canRender();
|
||||
incrementFps();
|
||||
|
||||
//printf("In [%s::%s Line: %d] renderToTexture [%p]\n",__FILE__,__FUNCTION__,__LINE__,renderToTexture);
|
||||
if(renderToTexture != NULL) {
|
||||
//printf("Rendering from texture!\n");
|
||||
|
||||
renderer.clearBuffers();
|
||||
renderer.reset3dMenu();
|
||||
renderer.clearZBuffer();
|
||||
renderer.renderBackground(renderToTexture);
|
||||
|
||||
renderer.reset2d();
|
||||
|
||||
renderer.renderBackground(renderToTexture);
|
||||
|
||||
renderer.renderButton(&buttonExit);
|
||||
|
||||
//exit message box
|
||||
|
@ -136,6 +136,8 @@ void MainMenu::render() {
|
||||
renderer.reset3dMenu();
|
||||
renderer.clearZBuffer();
|
||||
|
||||
//printf("In [%s::%s Line: %d] menuBackgroundVideo [%p]\n",__FILE__,__FUNCTION__,__LINE__,menuBackgroundVideo);
|
||||
|
||||
if(menuBackgroundVideo == NULL) {
|
||||
renderer.loadCameraMatrix(menuBackground.getCamera());
|
||||
renderer.renderMenuBackground(&menuBackground);
|
||||
|
Loading…
x
Reference in New Issue
Block a user