mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 10:47:36 +00:00
LibGL: Stop unnecessarily casting to float
If the `GLContext`'s internal state uses a `float`, it makes no sense casting to and from `double`s.
This commit is contained in:
parent
474f9e9c69
commit
ee4039caf8
5 changed files with 21 additions and 26 deletions
|
@ -93,12 +93,12 @@
|
|||
},
|
||||
"ClearDepth": {
|
||||
"arguments": [
|
||||
{"type": "GLdouble", "name": "depth"}
|
||||
{"type": "GLdouble", "name": "depth", "cast_to": "GLfloat"}
|
||||
]
|
||||
},
|
||||
"ClearDepthf": {
|
||||
"arguments": [
|
||||
{"type": "GLfloat", "name": "depth", "cast_to": "GLdouble"}
|
||||
{"type": "GLfloat", "name": "depth"}
|
||||
],
|
||||
"implementation": "clear_depth"
|
||||
},
|
||||
|
@ -123,11 +123,11 @@
|
|||
},
|
||||
"Color": {
|
||||
"arguments": [
|
||||
{"name": ["red", "green", "blue", "alpha"], "cast_to": "GLdouble"}
|
||||
{"name": ["red", "green", "blue", "alpha"], "cast_to": "GLfloat"}
|
||||
],
|
||||
"variants": {
|
||||
"argument_counts": [3, 4],
|
||||
"argument_defaults": ["0.", "0.", "0.", "1."],
|
||||
"argument_defaults": ["0.f", "0.f", "0.f", "1.f"],
|
||||
"convert_range": true,
|
||||
"pointer_argument": "v",
|
||||
"types": {
|
||||
|
@ -877,7 +877,7 @@
|
|||
},
|
||||
"Scale": {
|
||||
"arguments": [
|
||||
{"name": ["x", "y", "z"], "cast_to": "GLdouble"}
|
||||
{"name": ["x", "y", "z"], "cast_to": "GLfloat"}
|
||||
],
|
||||
"variants": {
|
||||
"types": {
|
||||
|
@ -1128,7 +1128,7 @@
|
|||
},
|
||||
"Translate": {
|
||||
"arguments": [
|
||||
{"name": ["x", "y", "z"], "cast_to": "GLdouble"}
|
||||
{"name": ["x", "y", "z"], "cast_to": "GLfloat"}
|
||||
],
|
||||
"variants": {
|
||||
"types": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue