Browse files

Forgot to commit changes to enumreader.go

  • Loading branch information...
1 parent 1a11290 commit 868b228d0456391f8c2e3ba0f633a100e49a3386 @ccherng ccherng committed Jul 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 enumreader.go
View
2 enumreader.go
@@ -58,7 +58,7 @@ func ReadEnums(r io.Reader) (EnumCategories, error) {
//fmt.Printf("%v %v\n", enum[1], enum[2])
if strings.HasPrefix(enum[2], "GL_") {
//fmt.Printf("%s %s\n", enum[1], enum[2])
- categories[currentCategory][enum[1]] = enum[2][3:]
+ categories[currentCategory][enum[1]] = categories[currentCategory][enum[2][3:]]
} else if strings.HasSuffix(enum[2], "u") {
categories[currentCategory][enum[1]] = enum[2][:len(enum[2])-1]
} else if strings.HasSuffix(enum[2], "ull") {

0 comments on commit 868b228

Please sign in to comment.