Removed ApplicationOverlay::resize()

This commit is contained in:
barnold1953 2014-07-09 16:39:05 -07:00
parent 6e92beeb1c
commit 56ff74dd56
3 changed files with 4 additions and 16 deletions

View file

@ -723,7 +723,6 @@ void Application::resizeGL(int width, int height) {
resetCamerasOnResizeGL(_myCamera, width, height);
glViewport(0, 0, width, height); // shouldn't this account for the menu???
_applicationOverlay.resize();
updateProjectionMatrix();
glLoadIdentity();

View file

@ -1189,20 +1189,12 @@ void ApplicationOverlay::renderTexturedHemisphere() {
}
void ApplicationOverlay::resize() {
if (_framebufferObject != NULL) {
delete _framebufferObject;
_framebufferObject = NULL;
}
// _framebufferObject is recreated at the correct size the next time it is accessed via getFramebufferObject().
}
QOpenGLFramebufferObject* ApplicationOverlay::getFramebufferObject() {
QSize size = Application::getInstance()->getGLWidget()->size();
if (!_framebufferObject || _framebufferObject->size() != size) {
if (_framebufferObject){
delete _framebufferObject;
}
delete _framebufferObject;
_framebufferObject = new QOpenGLFramebufferObject(size);
glBindTexture(GL_TEXTURE_2D, _framebufferObject->texture());
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

View file

@ -32,11 +32,8 @@ public:
void displayOverlayTexture3DTV(Camera& whichCamera, float aspectRatio, float fov);
void computeOculusPickRay(float x, float y, glm::vec3& direction) const;
void getClickLocation(int &x, int &y) const;
<<<<<<< HEAD
QPoint getOculusPalmClickLocation(const PalmData *palm) const;
=======
void resize();
>>>>>>> af6704a83cec1d69b3dc3e1145238919fcb82933
// Getters
QOpenGLFramebufferObject* getFramebufferObject();