Skip to content
Snippets Groups Projects
Commit 0b03cde7 authored by Xiaohong Bao's avatar Xiaohong Bao
Browse files

revert -r d7a43c972af0: fix for EXT-6928: Viewer crashes immediately after...

revert -r d7a43c972af0: fix for EXT-6928: Viewer crashes immediately after enabling HTTP Textures on a http-texture-server-1 simulator
and EXT-7009: textures fetched through http are never cached.
This will be checked into viewer-trunk.
parent 38dbdecc
No related branches found
No related tags found
No related merge requests found
...@@ -850,7 +850,6 @@ bool LLTextureFetchWorker::doWork(S32 param) ...@@ -850,7 +850,6 @@ bool LLTextureFetchWorker::doWork(S32 param)
mState = WAIT_HTTP_REQ; mState = WAIT_HTTP_REQ;
mFetcher->addToHTTPQueue(mID); mFetcher->addToHTTPQueue(mID);
mSentRequest = QUEUED;
// Will call callbackHttpGet when curl request completes // Will call callbackHttpGet when curl request completes
std::vector<std::string> headers; std::vector<std::string> headers;
headers.push_back("Accept: image/x-j2c"); headers.push_back("Accept: image/x-j2c");
...@@ -937,11 +936,6 @@ bool LLTextureFetchWorker::doWork(S32 param) ...@@ -937,11 +936,6 @@ bool LLTextureFetchWorker::doWork(S32 param)
{ {
mFileSize = mBufferSize; mFileSize = mBufferSize;
} }
else //the file size is unknown
{
mFileSize = mBufferSize + 1 ; //flag the file is not fully loaded.
}
U8* buffer = new U8[mBufferSize]; U8* buffer = new U8[mBufferSize];
if (cur_size > 0) if (cur_size > 0)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment