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
67221663
Commit
67221663
authored
12 years ago
by
David Parks
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-616 Fix for mac build.
parent
2207b979
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/llrender/llglslshader.cpp
+2
-0
2 additions, 0 deletions
indra/llrender/llglslshader.cpp
indra/llrender/llvertexbuffer.cpp
+4
-0
4 additions, 0 deletions
indra/llrender/llvertexbuffer.cpp
with
6 additions
and
0 deletions
indra/llrender/llglslshader.cpp
+
2
−
0
View file @
67221663
...
...
@@ -174,10 +174,12 @@ BOOL LLGLSLShader::createShader(vector<string> * attributes,
mFeatures
.
mIndexedTextureChannels
=
llmin
(
mFeatures
.
mIndexedTextureChannels
,
1
);
}
#ifdef GL_INTERLEAVED_ATTRIBS
if
(
varying_count
>
0
&&
varyings
)
{
glTransformFeedbackVaryings
(
mProgramObject
,
varying_count
,
varyings
,
GL_INTERLEAVED_ATTRIBS
);
}
#endif
// Map attributes and uniforms
if
(
success
)
...
...
This diff is collapsed.
Click to expand it.
indra/llrender/llvertexbuffer.cpp
+
4
−
0
View file @
67221663
...
...
@@ -373,7 +373,9 @@ U32 LLVertexBuffer::getVAOName()
}
else
{
#ifdef GL_ARB_vertex_array_object
glGenVertexArrays
(
1
,
&
ret
);
#endif
}
return
ret
;
...
...
@@ -2161,9 +2163,11 @@ void LLVertexBuffer::flush()
// bind for transform feedback (quick 'n dirty)
void
LLVertexBuffer
::
bindForFeedback
(
U32
channel
,
U32
type
,
U32
index
,
U32
count
)
{
#ifdef GL_TRANSFORM_FEEDBACK_BUFFER
U32
offset
=
mOffsets
[
type
]
+
sTypeSize
[
type
]
*
index
;
U32
size
=
(
sTypeSize
[
type
]
*
count
);
glBindBufferRange
(
GL_TRANSFORM_FEEDBACK_BUFFER
,
channel
,
mGLBuffer
,
offset
,
size
);
#endif
}
// Set for rendering
...
...
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