x/mobile/gl: fix building on windows/386

Fixes golang/go#15763

Change-Id: Iead7d69367ee5c821aefd1faed56bb3b259b6a62
Reviewed-on: https://go-review.googlesource.com/32113
Reviewed-by: David Crawshaw <crawshaw@golang.org>
diff --git a/gl/work_windows.go b/gl/work_windows.go
index c2bd09d..9c97213 100644
--- a/gl/work_windows.go
+++ b/gl/work_windows.go
@@ -5,6 +5,7 @@
 package gl
 
 import (
+	"runtime"
 	"syscall"
 	"unsafe"
 )
@@ -108,7 +109,9 @@
 func fixFloat(x0, x1, x2, x3 uintptr)
 
 func (ctx *context) doWork(c call) (ret uintptr) {
-	fixFloat(c.args.a0, c.args.a1, c.args.a2, c.args.a3)
+	if runtime.GOARCH == "amd64" {
+		fixFloat(c.args.a0, c.args.a1, c.args.a2, c.args.a3)
+	}
 
 	switch c.args.fn {
 	case glfnActiveTexture:
diff --git a/gl/work_windows_386.s b/gl/work_windows_386.s
new file mode 100644
index 0000000..c80e98a
--- /dev/null
+++ b/gl/work_windows_386.s
@@ -0,0 +1,9 @@
+// Copyright 2016 The Go Authors. All rights reserved.

+// Use of this source code is governed by a BSD-style

+// license that can be found in the LICENSE file.

+

+#include "textflag.h"

+

+// fixFloat is unnecessary for windows/386

+TEXT ·fixFloat(SB),NOSPLIT,$0-16

+	RET