Skip to content

Commit

Permalink
GITHUB #7 Use b-strings instead of as_8_bit
Browse files Browse the repository at this point in the history
This should have no effect whatsoever, and indeed
it doesn't seem to do anything in testing, but there's
no need to create maybe-unicode and then convert to bytes
rather than just forcing to bytes to start with.
  • Loading branch information
mcfletch committed Jan 2, 2020
1 parent 44a89fe commit 143ecbc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OpenGL/raw/WGL/_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
c_void = None

class _WGLQuerier( extensions.ExtensionQuerier ):
prefix = as_8_bit('WGL_')
prefix = b'WGL_'
assumed_version = [1,0]
version_prefix = as_8_bit('WGL_VERSION_WGL_')
version_prefix = b'WGL_VERSION_WGL_'
def pullVersion( self ):
# only one version...
return [1,0]
Expand All @@ -19,7 +19,7 @@ def pullExtensions( self ):
wglGetCurrentDC.restyle = HDC
try:
dc = wglGetCurrentDC()
proc_address = PLATFORM.getExtensionProcedure(as_8_bit('wglGetExtensionsStringARB') )
proc_address = PLATFORM.getExtensionProcedure(b'wglGetExtensionsStringARB')
wglGetExtensionStringARB = PLATFORM.functionTypeFor( PLATFORM.WGL )(
c_char_p,
HDC,
Expand Down

0 comments on commit 143ecbc

Please sign in to comment.