Browse Source

ticker: replace linked lists wih dynamic arrays for entity groups.

master
Sam Hocevar 11 years ago
parent
commit
55ec282a0b
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      neercs/video/render.cpp
  2. +1
    -1
      neercs/video/render.h

+ 2
- 2
neercs/video/render.cpp View File

@@ -859,7 +859,7 @@ void Render::ShaderSimple(Framebuffer *fbo_output, int n)
shader_simple->Unbind(); shader_simple->Unbind();
} }


int Render::InitDraw(void)
int Render::InitDrawResources(void)
{ {
glDepthMask(GL_TRUE); // do not write z-buffer glDepthMask(GL_TRUE); // do not write z-buffer


@@ -955,7 +955,7 @@ int Render::CreateGLWindow()
{ {
InitShaderVar(); InitShaderVar();
UpdateSize(); UpdateSize();
InitDraw();
InitDrawResources();
return true; return true;
} }




+ 1
- 1
neercs/video/render.h View File

@@ -22,7 +22,7 @@ protected:


private: private:
int CreateGLWindow(); int CreateGLWindow();
int InitDraw();
int InitDrawResources();
void ShaderSimple(Framebuffer *fbo_output, int n); void ShaderSimple(Framebuffer *fbo_output, int n);
void TraceQuad(); void TraceQuad();
void Pause(); void Pause();


Loading…
Cancel
Save