Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
09a9e61c
Commit
09a9e61c
authored
14 years ago
by
Loren Shih
Browse files
Options
Downloads
Patches
Plain Diff
SH-392 Port over fix from mesh-development for FBOs on OSX
parent
ffc07281
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/cmake/Variables.cmake
+1
-1
1 addition, 1 deletion
indra/cmake/Variables.cmake
indra/llrender/llrendertarget.cpp
+0
-11
0 additions, 11 deletions
indra/llrender/llrendertarget.cpp
with
1 addition
and
12 deletions
indra/cmake/Variables.cmake
+
1
−
1
View file @
09a9e61c
...
@@ -87,7 +87,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
...
@@ -87,7 +87,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
if
(
NOT CMAKE_OSX_DEPLOYMENT_TARGET
)
if
(
NOT CMAKE_OSX_DEPLOYMENT_TARGET
)
# NOTE: setting -isysroot is NOT adequate: http://lists.apple.com/archives/Xcode-users/2007/Oct/msg00696.html
# NOTE: setting -isysroot is NOT adequate: http://lists.apple.com/archives/Xcode-users/2007/Oct/msg00696.html
# see http://public.kitware.com/Bug/view.php?id=9959 + poppy
# see http://public.kitware.com/Bug/view.php?id=9959 + poppy
set
(
CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.
4u
.sdk
)
set
(
CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.
5
.sdk
)
set
(
CMAKE_OSX_DEPLOYMENT_TARGET 10.4
)
set
(
CMAKE_OSX_DEPLOYMENT_TARGET 10.4
)
endif
(
NOT CMAKE_OSX_DEPLOYMENT_TARGET
)
endif
(
NOT CMAKE_OSX_DEPLOYMENT_TARGET
)
...
...
This diff is collapsed.
Click to expand it.
indra/llrender/llrendertarget.cpp
+
0
−
11
View file @
09a9e61c
...
@@ -384,8 +384,6 @@ void LLRenderTarget::flush(BOOL fetch_depth)
...
@@ -384,8 +384,6 @@ void LLRenderTarget::flush(BOOL fetch_depth)
}
}
else
else
{
{
#if !LL_DARWIN
stop_glerror
();
stop_glerror
();
glBindFramebufferEXT
(
GL_FRAMEBUFFER_EXT
,
0
);
glBindFramebufferEXT
(
GL_FRAMEBUFFER_EXT
,
0
);
...
@@ -429,7 +427,6 @@ void LLRenderTarget::flush(BOOL fetch_depth)
...
@@ -429,7 +427,6 @@ void LLRenderTarget::flush(BOOL fetch_depth)
}
}
}
}
}
}
#endif
glBindFramebufferEXT
(
GL_FRAMEBUFFER_EXT
,
0
);
glBindFramebufferEXT
(
GL_FRAMEBUFFER_EXT
,
0
);
}
}
...
@@ -438,7 +435,6 @@ void LLRenderTarget::flush(BOOL fetch_depth)
...
@@ -438,7 +435,6 @@ void LLRenderTarget::flush(BOOL fetch_depth)
void
LLRenderTarget
::
copyContents
(
LLRenderTarget
&
source
,
S32
srcX0
,
S32
srcY0
,
S32
srcX1
,
S32
srcY1
,
void
LLRenderTarget
::
copyContents
(
LLRenderTarget
&
source
,
S32
srcX0
,
S32
srcY0
,
S32
srcX1
,
S32
srcY1
,
S32
dstX0
,
S32
dstY0
,
S32
dstX1
,
S32
dstY1
,
U32
mask
,
U32
filter
)
S32
dstX0
,
S32
dstY0
,
S32
dstX1
,
S32
dstY1
,
U32
mask
,
U32
filter
)
{
{
#if !LL_DARWIN
gGL
.
flush
();
gGL
.
flush
();
if
(
!
source
.
mFBO
||
!
mFBO
)
if
(
!
source
.
mFBO
||
!
mFBO
)
{
{
...
@@ -477,14 +473,12 @@ void LLRenderTarget::copyContents(LLRenderTarget& source, S32 srcX0, S32 srcY0,
...
@@ -477,14 +473,12 @@ void LLRenderTarget::copyContents(LLRenderTarget& source, S32 srcX0, S32 srcY0,
stop_glerror
();
stop_glerror
();
}
}
}
}
#endif
}
}
//static
//static
void
LLRenderTarget
::
copyContentsToFramebuffer
(
LLRenderTarget
&
source
,
S32
srcX0
,
S32
srcY0
,
S32
srcX1
,
S32
srcY1
,
void
LLRenderTarget
::
copyContentsToFramebuffer
(
LLRenderTarget
&
source
,
S32
srcX0
,
S32
srcY0
,
S32
srcX1
,
S32
srcY1
,
S32
dstX0
,
S32
dstY0
,
S32
dstX1
,
S32
dstY1
,
U32
mask
,
U32
filter
)
S32
dstX0
,
S32
dstY0
,
S32
dstX1
,
S32
dstY1
,
U32
mask
,
U32
filter
)
{
{
#if !LL_DARWIN
if
(
!
source
.
mFBO
)
if
(
!
source
.
mFBO
)
{
{
llerrs
<<
"Cannot copy framebuffer contents for non FBO render targets."
<<
llendl
;
llerrs
<<
"Cannot copy framebuffer contents for non FBO render targets."
<<
llendl
;
...
@@ -501,7 +495,6 @@ void LLRenderTarget::copyContentsToFramebuffer(LLRenderTarget& source, S32 srcX0
...
@@ -501,7 +495,6 @@ void LLRenderTarget::copyContentsToFramebuffer(LLRenderTarget& source, S32 srcX0
glBindFramebufferEXT
(
GL_FRAMEBUFFER_EXT
,
0
);
glBindFramebufferEXT
(
GL_FRAMEBUFFER_EXT
,
0
);
stop_glerror
();
stop_glerror
();
}
}
#endif
}
}
BOOL
LLRenderTarget
::
isComplete
()
const
BOOL
LLRenderTarget
::
isComplete
()
const
...
@@ -646,7 +639,6 @@ void LLMultisampleBuffer::allocate(U32 resx, U32 resy, U32 color_fmt, BOOL depth
...
@@ -646,7 +639,6 @@ void LLMultisampleBuffer::allocate(U32 resx, U32 resy, U32 color_fmt, BOOL depth
void
LLMultisampleBuffer
::
addColorAttachment
(
U32
color_fmt
)
void
LLMultisampleBuffer
::
addColorAttachment
(
U32
color_fmt
)
{
{
#if !LL_DARWIN
if
(
color_fmt
==
0
)
if
(
color_fmt
==
0
)
{
{
return
;
return
;
...
@@ -687,12 +679,10 @@ void LLMultisampleBuffer::addColorAttachment(U32 color_fmt)
...
@@ -687,12 +679,10 @@ void LLMultisampleBuffer::addColorAttachment(U32 color_fmt)
}
}
mTex
.
push_back
(
tex
);
mTex
.
push_back
(
tex
);
#endif
}
}
void
LLMultisampleBuffer
::
allocateDepth
()
void
LLMultisampleBuffer
::
allocateDepth
()
{
{
#if !LL_DARWIN
glGenRenderbuffersEXT
(
1
,
(
GLuint
*
)
&
mDepth
);
glGenRenderbuffersEXT
(
1
,
(
GLuint
*
)
&
mDepth
);
glBindRenderbufferEXT
(
GL_RENDERBUFFER_EXT
,
mDepth
);
glBindRenderbufferEXT
(
GL_RENDERBUFFER_EXT
,
mDepth
);
if
(
mStencil
)
if
(
mStencil
)
...
@@ -703,6 +693,5 @@ void LLMultisampleBuffer::allocateDepth()
...
@@ -703,6 +693,5 @@ void LLMultisampleBuffer::allocateDepth()
{
{
glRenderbufferStorageMultisampleEXT
(
GL_RENDERBUFFER_EXT
,
mSamples
,
GL_DEPTH_COMPONENT16_ARB
,
mResX
,
mResY
);
glRenderbufferStorageMultisampleEXT
(
GL_RENDERBUFFER_EXT
,
mSamples
,
GL_DEPTH_COMPONENT16_ARB
,
mResX
,
mResY
);
}
}
#endif
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment