summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorruslantproductengine <ruslantproductengine@lindenlab.com>2015-03-30 20:11:27 +0300
committerruslantproductengine <ruslantproductengine@lindenlab.com>2015-03-30 20:11:27 +0300
commit90573badb4fcea3ae771c466e859854547ed7ad5 (patch)
treefef5944b47997170f8853d9cd26f9445eb44abec /indra/newview
parent3f558469daa061d7edcafd377f1e539069f25c8d (diff)
MAINT-3585 FIXED (Crashes when attempting to upload image.)
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/lllocalbitmaps.cpp3
-rwxr-xr-xindra/newview/llviewerdisplay.cpp8
-rwxr-xr-xindra/newview/llviewerdisplay.h2
3 files changed, 0 insertions, 13 deletions
diff --git a/indra/newview/lllocalbitmaps.cpp b/indra/newview/lllocalbitmaps.cpp
index 4a89fc92b4..619140e922 100755
--- a/indra/newview/lllocalbitmaps.cpp
+++ b/indra/newview/lllocalbitmaps.cpp
@@ -844,9 +844,6 @@ bool LLLocalBitmapMgr::addUnit()
LLFilePicker& picker = LLFilePicker::instance();
if (picker.getMultipleOpenFiles(LLFilePicker::FFLOAD_IMAGE))
{
- //For fix problem with Core Flow view on OSX
- restoreGLContext();
-
sTimer.stopTimer();
std::string filename = picker.getFirstFile();
diff --git a/indra/newview/llviewerdisplay.cpp b/indra/newview/llviewerdisplay.cpp
index 9ef911616e..ea9463da04 100755
--- a/indra/newview/llviewerdisplay.cpp
+++ b/indra/newview/llviewerdisplay.cpp
@@ -1344,14 +1344,6 @@ void swap()
gDisplaySwapBuffers = TRUE;
}
-void restoreGLContext()
-{
- if(gViewerWindow && gViewerWindow->getWindow())
- {
- gViewerWindow->getWindow()->restoreGLContext();
- }
-}
-
void renderCoordinateAxes()
{
gGL.getTexUnit(0)->unbind(LLTexUnit::TT_TEXTURE);
diff --git a/indra/newview/llviewerdisplay.h b/indra/newview/llviewerdisplay.h
index dcc78fe42f..f6467d7f93 100755
--- a/indra/newview/llviewerdisplay.h
+++ b/indra/newview/llviewerdisplay.h
@@ -34,8 +34,6 @@ void display_cleanup();
void display(BOOL rebuild = TRUE, F32 zoom_factor = 1.f, int subfield = 0, BOOL for_snapshot = FALSE);
-void restoreGLContext();
-
extern BOOL gDisplaySwapBuffers;
extern BOOL gDepthDirty;
extern BOOL gTeleportDisplay;