Skip to content

Commit

Permalink
removed glInvalidateTex
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayLimaye committed Oct 4, 2014
1 parent 58503d8 commit 577c919
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions drishti/drawhiresvolume.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1777,12 +1777,12 @@ DrawHiresVolume::draw(float stepsize,
glEnable(GL_DEPTH_TEST);
glActiveTexture(GL_TEXTURE0);

#ifdef Q_OS_WIN32
glInvalidateTexImage(m_slcTex[0], 0);
glInvalidateTexImage(m_slcTex[1], 0);
glInvalidateTexImage(m_shdTex[0], 0);
glInvalidateTexImage(m_shdTex[1], 0);
#endif
//#ifdef Q_OS_WIN32
// glInvalidateTexImage(m_slcTex[0], 0);
// glInvalidateTexImage(m_slcTex[1], 0);
// glInvalidateTexImage(m_shdTex[0], 0);
// glInvalidateTexImage(m_shdTex[1], 0);
//#endif
}

void
Expand Down
16 changes: 8 additions & 8 deletions drishti/viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2150,10 +2150,10 @@ Viewer::fastDraw()

grabBackBufferImage();

#ifdef Q_OS_WIN32
glInvalidateTexImage(m_imageBuffer->texture(), 0);
glInvalidateTexImage(m_lowresBuffer->texture(), 0);
#endif
//#ifdef Q_OS_WIN32
// glInvalidateTexImage(m_imageBuffer->texture(), 0);
// glInvalidateTexImage(m_lowresBuffer->texture(), 0);
//#endif
}

void
Expand Down Expand Up @@ -2260,10 +2260,10 @@ Viewer::draw()

grabBackBufferImage();

#ifdef Q_OS_WIN32
glInvalidateTexImage(m_imageBuffer->texture(), 0);
glInvalidateTexImage(m_lowresBuffer->texture(), 0);
#endif
//#ifdef Q_OS_WIN32
// glInvalidateTexImage(m_imageBuffer->texture(), 0);
// glInvalidateTexImage(m_lowresBuffer->texture(), 0);
//#endif
}

void
Expand Down

0 comments on commit 577c919

Please sign in to comment.