We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4239 - GLES2: Get sin/cos out of vertex shader
Summary: GLES2: Get sin/cos out of vertex shader
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: render (show other bugs)
Version: HG 2.1
Hardware: All Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-26 14:10 UTC by Andreas Müller
Modified: 2018-08-28 19:58 UTC (History)
0 users

See Also:


Attachments
[PATCH] GLES2: Get sin/cos out of vertex shader (6.16 KB, patch)
2018-08-26 14:10 UTC, Andreas Müller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Müller 2018-08-26 14:10:30 UTC
Created attachment 3289 [details]
[PATCH] GLES2: Get sin/cos out of vertex shader

Hi,

the patch attached should (more details in patch description)

* fix left rotated rendering on RaspberryPi with VC open source graphics driver
* give a tiny performance win for simple render operations
* might fix https://bugzilla.libsdl.org/show_bug.cgi?id=3192

One note: I am a total newbee when it comes to OpenGL / shaders so if this patch looks silly - feel free to let me know
Comment 1 Sam Lantinga 2018-08-28 19:58:20 UTC
Added, thanks!
https://hg.libsdl.org/SDL/rev/e5a666405750