Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Type-Light
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenFlipper-Free
Type-Light
Commits
7f456d95
Commit
7f456d95
authored
Sep 15, 2017
by
Martin Schultz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed more deprecated glCalls
parent
400efbac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
ObjectTypes/Light/LightNode.cc
ObjectTypes/Light/LightNode.cc
+5
-2
ObjectTypes/Light/LightNode.hh
ObjectTypes/Light/LightNode.hh
+1
-1
No files found.
ObjectTypes/Light/LightNode.cc
View file @
7f456d95
...
...
@@ -526,8 +526,11 @@ void LightNode::enter(GLState& _state, const DrawModes::DrawMode& /* _drawmode *
/// transfer GL-preferences to lightSave_
getParameters
(
_state
,
lightId_
,
lightSave_
);
// save old light
lightSave_
.
enabled_
=
glIsEnabled
(
lightId_
);
if
(
_state
.
compatibilityProfile
())
{
// save old light
lightSave_
.
enabled_
=
glIsEnabled
(
lightId_
);
}
if
(
light_
.
enabled_
)
{
// correct Position for fixed Lights
...
...
ObjectTypes/Light/LightNode.hh
View file @
7f456d95
...
...
@@ -346,7 +346,7 @@ class OBJECTTYPEDLLEXPORT LightSourceHandle {
GLint
maxLights
;
// Get max number of lights
if
(
OpenFlipper
::
Options
::
gui
())
if
(
OpenFlipper
::
Options
::
gui
()
&&
!
OpenFlipper
::
Options
::
coreProfile
()
)
glGetIntegerv
(
GL_MAX_LIGHTS
,
&
maxLights
);
else
maxLights
=
50
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment