Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

C# Header File Incorrect Texture Size Fields #702

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.

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

No branches or pull requests

2 participants