Skip to content

Commit

Permalink
Tests|glsandbox: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Apr 29, 2013
1 parent a581b4b commit 70031b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doomsday/tests/glsandbox/testwindow.cpp
Expand Up @@ -141,7 +141,7 @@ DENG2_OBSERVES(Clock, TimeChange)

"void main(void) {\n"
" gl_Position = uMvpMatrix * aVertex;\n"
" vUV = aUV + vec2(uTime/5.0, 0.0);\n"
" vUV = aUV + vec2(uTime/10.0, 0.0);\n"
" vColor = aColor + vec4(sin(uTime), cos(uTime), sin(uTime), cos(uTime)*0.5) * uColor;\n"
"}\n";

Expand Down Expand Up @@ -185,9 +185,9 @@ DENG2_OBSERVES(Clock, TimeChange)
void draw(Canvas &)
{
// First render the frame to the texture.
GLState &frameState = GLState::push();
frameState.setTarget(*frameTarget.get());
frameState.setViewport(Rectangleui::fromSize(frameTex.size()));
GLState::push()
.setTarget(*frameTarget)
.setViewport(Rectangleui::fromSize(frameTex.size()));
drawFrame();
GLState::pop();

Expand Down

0 comments on commit 70031b1

Please sign in to comment.