Skip to content

Commit 169578d

Browse files
committed
Fix WebGL signatures.
1 parent 9bab960 commit 169578d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/scala/org/scalajs/dom/raw/WebGL.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ class WebGLRenderingContext extends js.Object {
15411541
/**
15421542
* Specifies the line width.
15431543
*/
1544-
def lineWidth(width: Int): Unit = js.native
1544+
def lineWidth(width: Double): Unit = js.native
15451545

15461546
/**
15471547
* Attempts to link the specified [[WebGLProgram]].
@@ -1562,7 +1562,7 @@ class WebGLRenderingContext extends js.Object {
15621562
* to them, calculated as `factor`*DZ + r*`units`, where DZ is the change in z based on the polygon's screen area, and r is the minimum value that
15631563
* is guaranteed produce a measurable offset.
15641564
*/
1565-
def polygonOffset(factor: Int, units: Int): Unit = js.native
1565+
def polygonOffset(factor: Double, units: Double): Unit = js.native
15661566

15671567
/**
15681568
* Reads pixels from the framebuffer into `pixels`.
@@ -1757,7 +1757,7 @@ class WebGLRenderingContext extends js.Object {
17571757
* [[WebGLRenderingContext.TEXTURE_WRAP_S]], or [[WebGLRenderingContext.TEXTURE_WRAP_T]]
17581758
* @param param the value to set. See the corresponding parameters for valid values.
17591759
*/
1760-
def texParameterf(target: Int, pname: Int, param: Int): Unit = js.native
1760+
def texParameterf(target: Int, pname: Int, param: Double): Unit = js.native
17611761

17621762
/**
17631763
* Sets the texture parameter for the active texture unit.

0 commit comments

Comments
 (0)