Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
libshadertoy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HUYNH Danh
libshadertoy
Commits
4c663b51
Commit
4c663b51
authored
7 years ago
by
TAVERNIER Vincent
Browse files
Options
Downloads
Patches
Plain Diff
Fix iResolution not being updated on AllocateTexture
parent
cfc91ba0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+6
-0
6 additions, 0 deletions
debian/changelog
debian/control
+2
-2
2 additions, 2 deletions
debian/control
src/RenderContext.cpp
+4
-1
4 additions, 1 deletion
src/RenderContext.cpp
with
12 additions
and
3 deletions
debian/changelog
+
6
−
0
View file @
4c663b51
libshadertoy (0.0.6) unstable; urgency=medium
* Fix iResolution not being updated on resolution change through Allocate
-- Vincent Tavernier <vincent.tavernier@inria.fr> Fri, 13 Oct 2017 14:05:00 +0200
libshadertoy (0.0.5) unstable; urgency=medium
libshadertoy (0.0.5) unstable; urgency=medium
* Fix support for iGlobalTime as well as iTime
* Fix support for iGlobalTime as well as iTime
...
...
This diff is collapsed.
Click to expand it.
debian/control
+
2
−
2
View file @
4c663b51
...
@@ -12,7 +12,7 @@ Vcs-Git: https://gitlab.inria.fr/vtaverni/libshadertoy.git
...
@@ -12,7 +12,7 @@ Vcs-Git: https://gitlab.inria.fr/vtaverni/libshadertoy.git
Vcs-Browser: https://gitlab.inria.fr/vtaverni/libshadertoy/tree/master
Vcs-Browser: https://gitlab.inria.fr/vtaverni/libshadertoy/tree/master
Package: libshadertoy-dev
Package: libshadertoy-dev
Version: 0.0.
5
Version: 0.0.
6
Section: libdevel
Section: libdevel
Architecture: all
Architecture: all
Depends: libshadertoy0 (= ${binary:Version}), ${misc:Depends},
Depends: libshadertoy0 (= ${binary:Version}), ${misc:Depends},
...
@@ -21,7 +21,7 @@ Description: Development files for libshadertoy
...
@@ -21,7 +21,7 @@ Description: Development files for libshadertoy
Development headers and documentation for libshadertoy
Development headers and documentation for libshadertoy
Package: libshadertoy0
Package: libshadertoy0
Version: 0.0.
5
Version: 0.0.
6
Architecture: any
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Library for rendering ShaderToy programs using OpenGL
Description: Library for rendering ShaderToy programs using OpenGL
...
...
This diff is collapsed.
Click to expand it.
src/RenderContext.cpp
+
4
−
1
View file @
4c663b51
...
@@ -96,7 +96,6 @@ RenderContext::RenderContext(ContextConfig &config)
...
@@ -96,7 +96,6 @@ RenderContext::RenderContext(ContextConfig &config)
void
RenderContext
::
Initialize
()
void
RenderContext
::
Initialize
()
{
{
// Initialize constant uniforms
// Initialize constant uniforms
state
.
V
<
iResolution
>
()
=
Vec3f
(
config
.
width
,
config
.
height
,
1.0
f
);
state
.
V
<
iTimeDelta
>
()
=
1.0
f
/
(
float
)
config
.
targetFramerate
;
state
.
V
<
iTimeDelta
>
()
=
1.0
f
/
(
float
)
config
.
targetFramerate
;
state
.
V
<
iFrameRate
>
()
=
(
float
)
config
.
targetFramerate
;
state
.
V
<
iFrameRate
>
()
=
(
float
)
config
.
targetFramerate
;
...
@@ -229,6 +228,10 @@ void RenderContext::AllocateTextures()
...
@@ -229,6 +228,10 @@ void RenderContext::AllocateTextures()
// Reallocate inputs
// Reallocate inputs
textureEngine
->
ClearState
(
true
);
textureEngine
->
ClearState
(
true
);
// Update the iResolution uniform, as this method can be called after a
// framebuffer size change
state
.
V
<
iResolution
>
()
=
Vec3f
(
config
.
width
,
config
.
height
,
1.0
f
);
}
}
void
RenderContext
::
ClearState
()
void
RenderContext
::
ClearState
()
...
...
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