Skip to content

Commit

Permalink
Merge pull request rougier#149 from yairchu/patch-10
Browse files Browse the repository at this point in the history
demos/atb-agg: remove misleading code which does nothing
  • Loading branch information
rougier authored Dec 30, 2016
2 parents e33a7f3 + 16ca612 commit 44f477a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions demos/atb-agg.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,19 +448,13 @@ void init( GLFWwindow* window )
// ---------------------------------------------------------------- display ---
void display( GLFWwindow* window )
{
vec4 black = {{0.0, 0.0, 0.0, 1.0}};
vec4 white = {{1.0, 1.0, 1.0, 1.0}};

if( !p_invert )
{
glClearColor( 0, 0, 0, 1 );
text_buffer->base_color = white;

}
else
{
glClearColor( 1, 1, 1, 1 );
text_buffer->base_color = black;
}
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );

Expand Down

0 comments on commit 44f477a

Please sign in to comment.