Skip to content

C# Header File Incorrect Texture Size Fields #702

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
SpyderTL opened this issue Jan 5, 2018 · 1 comment
Closed

C# Header File Incorrect Texture Size Fields #702

SpyderTL opened this issue Jan 5, 2018 · 1 comment

Comments

@SpyderTL
Copy link

SpyderTL commented Jan 5, 2018

In openvr_api.cs, the following structure

[StructLayout(LayoutKind.Sequential)] public struct RenderModel_TextureMap_t
{
	public char unWidth;
	public char unHeight;
	public IntPtr rubTextureMapData; // const uint8_t *
}

should be

[StructLayout(LayoutKind.Sequential)] public struct RenderModel_TextureMap_t
{
	public ushort unWidth;
	public ushort unHeight;
	public IntPtr rubTextureMapData; // const uint8_t *
}

The packed version also has the same issue...

I've fixed this locally, but I thought that I'd mention it in case someone gets a chance to fix it on GitHub before I get a chance.

Great work, btw.

Thanks!

@kisak-valve
Copy link
Member

Hello @SpyderTL, this issue is already being tracked at #638.

Closing as a duplicate.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants