Move a call added for text rendering in MetalContext.drawIndexedQuads to a correct place

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P4
    • internal
    • Affects Version/s: None
    • Component/s: javafx
    • Environment:

      fx-sandbox:metal branch

    • generic
    • os_x

      Currently following code block is added in MetalContext.drawIndexedQuads()
      ```
         if (tex0 != nil) {
              id<MTLTexture> tex = [tex0 getTexture];
              [renderEncoder useResource:tex usage:MTLResourceUsageRead];
          }
      ```
      This call is required for text rendering but has side effect that it will be applied to any texture from any shader that was set last.
      This call should be moved to better place where it's execution scope is limited to it's need.

            Assignee:
            Ambarish Rapte
            Reporter:
            Ambarish Rapte
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: