remove gl crap

This commit is contained in:
lordwelch 2017-09-20 17:36:57 -07:00
parent 73bbf9b01a
commit 7cf75e4630
2 changed files with 3 additions and 13 deletions

14
main.go
View File

@ -104,8 +104,8 @@ func run() error {
return nil
}
func (sv service) Init(int num) {
if num <= 0 {
func (sv service) Init(uint num) {
if num == 0 {
num = 1
}
@ -231,16 +231,6 @@ func (cl *Cell) Select() {
}
/*func (cl *Cell) Texture() glbase.Texture {
fmt.Println("index: ", cl.index, " ", cl.img.tex)
fmt.Println("error tex:", gl.GetError())
if cl.img.tex == 0 {
cl.img.tex = newTexture(*cl.getImage(monWidth, monHeight))
fmt.Println("new texture", cl.img.tex)
}
return cl.img.tex
}*/
//not really needed
func (cl Cell) String() string {
return fmt.Sprintf("Index: %d \nText: %s\n", cl.index, cl.text)

2
qrc.go
View File

@ -13,7 +13,7 @@ import (
func init() {
var r *qml.Resources
var err error
if true/*os.Getenv("QRC_REPACK") == "1"*/ {
if true /*os.Getenv("QRC_REPACK") == "1"*/ {
err = qrcRepackResources()
if err != nil {
panic("cannot repack qrc resources: " + err.Error())